Two things need to be done to stop JBoss instances clustering together, changing the partition name and changing the multicast address (for UDP):
- To change the partition name, you can pass "-g PartitionName" or "--partition=PartitionName" to run.sh, or add "-Djboss.partition.name=PartitionName" to JAVA_OPTS.
- To change the JGroups multicast address, pass "-u x.y.z.w" to run.sh or add "-Djboss.partition.udpGroup=x.y.z.w -Djgroups.udp.mcast_addr=x.y.z.w" (example address would be 126.96.36.199)
To avoid that instances are build a cluster:
until JBoss 5.1 it is easy you can use '-g <PartitionName> -u <JGroups address w.x.y.z> -m <JGroups mcast port number>'
Autodiscovery from client side you have to add the JNDI-Property jnp.disableDiscovery' => true
This avoid that the client start an mcast to discover any JBoss in your network (the mcast address is always set to a default)