Disabling Multicast within a Cluster

Now you can disable Multicast within a cluster. To do that, you must add this line to the installprops\lib\installed.properties file:

oware.unicast=true

And in file jgroups-channelfacotry-stacks.xml in $OWARE_ROOT/jboss-x.x/server/oware/deploy/cluster/jgroups-channelfactory.sar/META-INF/ change the following

Commenting out this portion:

<stack name="tcp"

<!--Alternative 1: multicast-based automatic discovery.-->

<MPING timeout="3000"

num_initial_members="3"

mcast_addr="${jboss.partition.udpGroup:230.11.11.11}"

mcast_port="${jgroups.tcp.mping_mcast_port:45700}"

ip_ttl="${jgroups.udp.ip_ttl:2}"/>

Uncomment this portion:

<!-- Alternative 2: non multicast-based replacement for MPING. Requires a static configuration of *all* possible cluster members.>

<TCPPING timeout="3000" initial_hosts="${jgroups.tcpping.initial_hosts:localhost[7600],localhost[7600]}"

port_range="1"

num_initial_members="3"/-->

Example:

<!-- Alternative 1: multicast-based automatic discovery. -->

<MPING timeout="3000"

num_initial_members="3"

mcast_addr="${jboss.partition.udpGroup:230.11.11.11}"

mcast_port="${jgroups.tcp.mping_mcast_port:45700}"

ip_ttl="${jgroups.udp.ip_ttl:2}"/-->

<!-- Alternative 2: non multicast-based replacement for MPING. Requires a static configuration of *all* possible cluster members.-->

<TCPPING timeout="3000"

initial_hosts="${jgroups.tcpping.initial_hosts:192.168.53.15[7600],192.168.53.16[7600],192.168.53.17[7600]}"

port_range="1"

num_initial_members="3"/>