2 Replies Latest reply on May 22, 2012 9:19 PM by ethan.c

    How can PHP(STOMP) connect to hornetq cluster using UDP?

    ethan.c

      Hi everyone,

       

      I am facing a problem right now.  In hornetq we config the group_address as UDP(like 231.7.7.8). How can PHP(STOMP) connect to hornetq cluster server using UDP?

      In Java we can connect to group as below:

       

                DiscoveryGroupConfiguration groupConfiguration = new DiscoveryGroupConfiguration("231.7.7.7", 9876);   

                ConnectionFactory cf = (ConnectionFactory)HornetQJMSClient.createConnectionFactoryWithoutHA(groupConfiguration, JMSFactoryType.CF);

                ......

      How can PHP achieve this?  Any clue will be helpful. 

       

      Thanks!

        • 1. Re: How can PHP(STOMP) connect to hornetq cluster using UDP?
          gaohoward

          I don't think this is possible for now as long as you use STOMP protocol.

           

          Howard

          • 2. Re: How can PHP(STOMP) connect to hornetq cluster using UDP?
            ethan.c

            Thanks for your reply, Howard!

             

            I have been busy on something else these days, and finally get some time back on the cluster configurations.

            As Howard said, currently there is no proper way for STOMP connecting to cluster by UDP.  Is there any possibility to use STOMP in hornetq cluster envrionment?

            And we don't want to use a concrete connection in STOMP to access to cluster, because that instance might go down at any time. So we hope there is a common entry for STOMP to connect to cluster too.

            If the UDP cluster is not a good chioce for STOMP,  what is the recommended approach?   Something like master-slave-cluster in hornetq?

             

            Thanks!