Best way to verify that my hazelcast xml configuration file has been raised

I want to find out how best to confirm that my specified Ghelcast XML configuration file was raised (and not the default configuration). Right now, I'm using the build metthod for XmlClientConfigBuilder to configure the client and FileSystemXmlConfig to configure the server.

+4
source share
2 answers

Just print / exit the properties from the xml configuration file as follows:

for client configuration

config.getNetworkConfig().getConnectionTimeout(); //where config -> ClientConfig

Server

config.getNetworkConfig().getPort();  //where config is Config
0
source

In Hazelcast 3.3, the log that downloads the configuration file is significantly improved and it will show which file is being selected. Hazelcast 3.3 will be released this week.

; , . HazelcastInstance, , .

+1

All Articles