Last active
May 12, 2020 04:07
-
-
Save pavankjadda/0b2830fd93972bb11785f530294b166e to your computer and use it in GitHub Desktop.
HazelCastConfig.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pj.hazelcastdemo.config; | |
import com.hazelcast.config.Config; | |
import com.hazelcast.config.NetworkConfig; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
@Configuration | |
public class HazelCastConfig | |
{ | |
@Bean | |
public Config config() | |
{ | |
NetworkConfig networkConfig = new NetworkConfig(); | |
networkConfig.setPublicAddress("192.168.1.157").addOutboundPort(5701); | |
networkConfig.setPublicAddress("192.168.1.157").addOutboundPort(5702); | |
Config config = new Config(); | |
config.setNetworkConfig(networkConfig); | |
return config; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment