To test clustering using a single JBoss instance on a single server,
use the properties jboss.node.name
, jboss.server.data.dir
, and
jboss.socket.binding.port-offset
In one shell, run
$JBOSS_HOME/bin/standalone.sh --server-config=standalone-ha.xml -Djboss.node.name=one -Djboss.server.data.dir=/tmp/one
In another, run
$JBOSS_HOME/bin/standalone.sh --server-config=standalone-ha.xml -Djboss.node.name=two -Djboss.server.data.dir=/tmp/two -Djboss.socket.binding.port-offset=100