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 Newbie

      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!