To test multicast communication using Jgroups:
Jgroups is the open source component that handles multicast communication between Clarity servers in a Cluster. The following procedure assumes you have at least two clarity servers and the corresponding network configuration have been made to allow multicast traffic. Please refer to the Clarity Installation guide (Sixth Edition) in Chapter 2: Clustering->Multicast Messaging for more information.
On the machine running NSA (SENDER) execute the following:
java org.jgroups.tests.McastSenderTest1_4 -mcast_addr <multicast_address> -port <beacon port> -use_all_interfaces
e.g. "java org.jgroups.tests.McastSenderTest1_4 -mcast_addr 184.108.40.206 -port 9090 -use_all_interfaces"
On the application servers (RECEIVER):
java org.jgroups.tests.McastReceiverTest1_4 -mcast_addr <multicast_address> -port <beacon> port -use_all_interfaces
e.g. java org.jgroups.tests.McastReceiverTest1_4 -mcast_addr 220.127.116.11 -port 9090 -use_all_interfaces
The same multicast address must be used on both the SENDER and on the RECEIVER. You should use the same multicast address/port that you specify in the NSA. If this fails you can try a different address/port and see if that succeeds.
Once the sender and receiver are running, you should be able to type a message in the terminal window of the "SENDER" - the same message should IMMEDIATELY appear in the window of the RECEIVER. This test should be done on each application server to see if it can RECEIVE messages from the SENDER.
The best way to test is to type in:
You should see every character you type in the SENDER replicated in the RECEIVER. If you don't, then your environment isn't passing multicast traffic. This could be because of a lack of IGMP Snooping being enabled on the switch in between the app servers.