How do you programmatically configure hazelcast for the multicast discovery mechanism?

后端 未结 7 1176
-上瘾入骨i
-上瘾入骨i 2020-12-05 13:37

How do you programmatically configure hazelcast for the multicast discovery mechanism?


Details:

The documentation only supplies an example for TCP/IP

相关标签:
7条回答
  • 2020-12-05 14:41

    Can you try to create your Hazelcast instance like this:

    Config cfg = new Config();                  
    HazelcastInstance hz = Hazelcast.newHazelcastInstance(cfg);
    

    The managementcenter stuff and the creation of the executors are not relevant (I added that code in the testapp, so I'm 100% sure about that).

    Then you should have exactly the same network configuration as the TestApp.

    0 讨论(0)
提交回复
热议问题