Can you try escaping the '&' character, i.e. replace it with "&",
or pass the URL through htmlspecialchars perhaps?

On Thu, May 12, 2011 at 6:00 PM, Tianchi <tinali...@gmail.com> wrote:
> 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.
>
>
>
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/stomp-exception-when-configuring-failover-URL-tp3518843p3518843.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Reply via email to