hazelcast network ports and members

326 views
Skip to first unread message

mohamme...@googlemail.com

unread,
Mar 2, 2014, 6:40:34 PM3/2/14
to haze...@googlegroups.com
Hi guys,

i'm trying to integrate Hazelcast in my web application and deploy it in two local apache tomcate say A (port:9091)  and B (port:9091).
but i have some ambiguity and unclarity about hazelcast network ports and members.
what should i use as hazelcast port and members?
should i use as hazelcast port the port of my apache tomcat?
what is the relation  between server ports and hazelcast network ports, between servers and hazelcast members?
are they the same?

<hz:network port="hz.network.port" port-auto-increment="false">
<hz:join>
<hz:tcp-ip enabled="true">
<hz:members>hz.members</hz:members>
</hz:tcp-ip>
</hz:join>
</hz:network>

when i use the port of my first apache tomcate (hz.network.port=9091, hz.members=localhost)  and try to deploy my web application on it, i get the error: 

com.hazelcast.core.HazelcastException: java.net.BindException: Address already in use: bind
	com.hazelcast.util.ExceptionUtil.rethrow(ExceptionUtil.java:45)
	com.hazelcast.instance.Node.<init>(Node.java:138)



Thanks.

Ahmet Mircik

unread,
Mar 3, 2014, 2:34:56 PM3/3/14
to haze...@googlegroups.com
Hi, 
try to set this true---> port-auto-increment="false" by setting this hazelcast scans a number of ports to bind to
or give a static port eg  5701, 5702
not use an already occupied port.


--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/17c45a2f-aef3-47e4-b698-90a5fc8967be%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages