1 2 Previous Next 16 Replies Latest reply on Dec 12, 2013 9:37 PM by Murty Kirlampalli

    Multicast communication does not work with Stand-alone cluster

    Abbas Raza Newbie

      Hi,

       

      Multicast communication does not seem to work in a standalone cluster although I have UDP enabled. On my local machine, it works. However, in the cluster that I set up on separate machines, it is not working. Here are my configuration and code snippets.

       

      Configuration (hornetq-jms.xml):

         <connection-factory name="NettyConnectionFactory">

            <discovery-group-ref discovery-group-name="dg-group1"/>

             <entries>

                <entry name="/ConnectionFactory"/>

              </entries>

              <client-id>1000</client-id>

          </connection-factory>

       

       

      Client code:

          connectionFactory = HornetQJMSClient.createConnectionFactoryWithHA(

              new DiscoveryGroupConfiguration(231.7.7.7, 9876), JMSFactoryType.CF);

          connectionFactory.setReconnectAttempts(-1);

          connectionFactory.getDiscoveryGroupConfiguration().setDiscoveryInitialWaitTimeout(100000);

       

      The error message that I see is: [errorCode=3 message=Timed out waiting to receive initial broadcast from cluster]. It comes from ServerLocatorImpl.java line 569.

       

      Am I missing anything here?

       

      Separately, I wrote two simple java classes to test multicasting - one to join the multicast group and the other one to send a message to the group. That works with the cluster I set up with two separate machines. I am confused why HornetQ's client is not able to establish a connection with the multicast group.

       

      Appreciate any help.

       

      Thanks.

       

      PS: I did see a thread on the forum about connection issue with multicasting. The answer was to enable UDP. For me, it has been turned on. Looks like it is beyond that point for me.

        1 2 Previous Next