apache karaf - TCP-IP Join in Hazelcast not working in servicemix -


according hazelcast article http://docs.hazelcast.org/docs/2.4/manual/html/ch12s02.html added hostname of pc in hazelcast.xml generated in servicemix_home/etc below.

<tcp-ip enabled="true">     <hostname>fablrdt061:5702</hostname>     <interface>127.0.0.1</interface> </tcp-ip> 

if start servicemix, not able connect hostname specified because of following connection refusal. log message in other pc below

[172.16.25.64]:5702 [cellar] 5702 accepting socket connection /172.16.25.71:60770 [172.16.25.64]:5702 [cellar] 5702 accepted socket connection /172.16.25.71:60770 [172.16.25.64]:5702 [cellar] wrong bind request address[127.0.0.1]:5701! node not requested endpoint: address[fablrdt061]:5702 [172.16.25.64]:5702 [cellar] connection [/172.16.25.71:60770] lost. reason: explicit close 

what reason?? can me out??

hazelcast configuration file using discovery of nodes can configured.

eventhough tutorials explain following points, according hands on did, understand that

  1. multicast auto discovery of cellar nodes in same sytem.

  2. if cellar nodes present in different systems on network, use tcp-ip configuration.

  3. for multicasting dont need change until writing different multicast groups.

  4. for discovering nodes using tcp-ip need specify ipaddresses (as explained many tutorials not how.

  5. under tcp-ip tag create tag called hostname in hostname of other system or ipaddress should mentioned. in interface tag, specify current system's ipaddress.

  6. similarly in other nodes same should done.


Comments