Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Port Numbers to be used in a JBOSS Cluster over TCP  RSS feed

Antonio Xavier Annasamy
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

I have managed to create a horizontal JBOSS cluster over TCP in our environment. The files which needed the cluster config changes are:

1. $JBOSS_HOME/server/<instance name>/deploy/cluster-service.xml
2. $JBOSS_HOME/server/<instance name>/deploy/ejb3-clustered-sfsbcache-service.xml
3. $JBOSS_HOME/server/<instance name>/deploy/ejb3-entity-cache-service.xml
4. $JBOSS_HOME/server/<instance name>/deploy/jboss-web-cluster.sar/META-INF/jboss-service.xml

(Please let me know, if I have missed out any other files.)

Now in all the above files when I used port number 7800. The cluster is formed, but there are messages which get generated about packets being dropped.
For example
cluster-service.xml from one node tries to connect to ejb3-clustered-sfsbcache-service.xml or ejb3-entity-cache-service.xml or META-INF/jboss-service.xml of the second node.
But the second node denies this request due to a different name and drops the request. (The cluster is still intact. Same files across different nodes are in communication, but cross file communication is dropped)
Is this normal? Is this how it should be?

To avoid these messages I have configured different ports for the above files across the cluster.
For example:
Port number in cluster-service.xml across all nodes is 7800
Port number in ejb3-clustered-sfsbcache-service.xml across all nodes is 7900
Port number in ejb3-entity-cache-service.xml across all nodes is 7950
Port number in META-INF/jboss-service.xml across all nodes is 8000

Is this approach correct? I haven't tested this setup with any application yet, but will be doing it later.

Please let me know if I am doing this wrong



  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!