Red Hat JBoss Enterprise Application Platform (EAP)
java -cp $JBOSS_HOME/bin/client/jboss-client.jar org.jgroups.tests.McastReceiverTest -mcast_addr 230.11.11.11 -port 5555
java -cp $JBOSS_HOME/bin/client/jboss-client.jar org.jgroups.tests.McastSenderTest -mcast_addr 230.11.11.11 -port 5555
받는쪽 서버에서 JBoss 가 설치된 디렉토리에서 아래와같이 명령어를 입력하여 데이터 수신을 대기한다.
[root@host1:/jboss]# java -cp ./modules/system/layers/base/org/jgroups/main/jgroups-3.6.8.Final-redhat-2.jar org.jgroups.tests.McastReceiverTest -mcast_addr 230.0.30.11 -port 7600 Socket=0.0.0.0/0.0.0.0:7600, bind interface=/0:0:0:0:0:0:0:0%ipmp0 Socket=0.0.0.0/0.0.0.0:7600, bind interface=/172.18.77.21 Socket=0.0.0.0/0.0.0.0:7600, bind interface=/0:0:0:0:0:0:0:1%lo0 Socket=0.0.0.0/0.0.0.0:7600, bind interface=/127.0.0.1
java -cp $JBOSS_HOME/server/production/lib/jgroups.jar org.jgroups.tests.McastReceiverTest -mcast_addr 230.11.11.11 -port 5555 -bind_addr $YOUR_BIND_ADDRESS
보내는쪽 서버에서 JBoss가 설치된 디렉토리에서 아래와같이 명령어를 입력하여 데이터 발송 상태로 셋팅한다.
[root@host2:/jboss]# java -cp ./modules/system/layers/base/org/jgroups/main/jgroups-3.6.8.Final-redhat-2.jar org.jgroups.tests.McastSenderTest -mcast_addr 230.0.30.11 -port 7600 Socket #1=0.0.0.0/0.0.0.0:7600, ttl=32, bind interface=/0:0:0:0:0:0:0:0%ipmp0 Socket #2=0.0.0.0/0.0.0.0:7600, ttl=32, bind interface=/172.18.77.22 Socket #3=0.0.0.0/0.0.0.0:7600, ttl=32, bind interface=/0:0:0:0:0:0:0:1%lo0 Socket #4=0.0.0.0/0.0.0.0:7600, ttl=32, bind interface=/127.0.0.1 > 이후에 아무거나 입력하면 수신쪽 화면에서 데이터가 출력되는것을 확인 할 수 있다.
java -cp $JBOSS_HOME/server/production/lib/jgroups.jar org.jgroups.tests.McastSenderTest -mcast_addr 230.11.11.11 -port 5555 -bind_addr $YOUR_BIND_ADDRESS