0 Replies Latest reply on May 12, 2011 6:02 PM by tianchi

    stomp exception when configuring failover URL

    tianchi

      Hi,

       

      I am using ServiceMix ESB, version: apache-servicemix-4.3.1-fuse-01-09 and activemq 5.4.2.fuse-03-09 and trying to set up failover for two queues using JDBC lock system. On the PHP client side, I used the following command to make a connection:

       

      $con=new stomp("failover://(tcp://localhost:61213,tcp://192.168.10.8:61213)?randomize=false");

       

      It works perfectly.

       

      But when I tried to use more than one transport options like:

       

      $con=new stomp("failover://(tcp://localhost:61213,tcp://192.168.10.8:61213)?randomize=false&backup=true");

       

      It throws an exception:

      StompException: Bad Broker URL failover://(tcp://localhost:61213,tcp://192.168.10.8:61213)?randomize=false&backup=true

       

      Anyone has idea on how to fix it?

       

      Thanks.