Hi, connection options are set once for the whole connection, so they shouldn't be defined for sub URIs. Try if this works for you
failover://(tcp://host1:61616,tcp://host2:61616)?randomize=false&jms.redeliveryPolicy.maximumRedeliveries=2 Cheers -- Dejan Bosanac Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Mon, Mar 30, 2009 at 1:12 PM, boniek <bonie...@gmail.com> wrote: > > Why this client connection uri for my consumer doesn't work (it hangs when > getting connection)? > > > failover://(tcp://host1:61616?jms.redeliveryPolicy.maximumRedeliveries=2,tcp://host2:61616?jms.redeliveryPolicy.maximumRedeliveries=2)?randomize=false > -- > View this message in context: > http://www.nabble.com/Failover-and-redeliverypolicy-in-one-connection-uri-tp22780954p22780954.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >