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.