Hi, you the normal JMS code for that (find any JMS tutorial on the topic). The only thing that is different in failover case is broker url you use (e.g failover:(tcp://primary:61616,tcp://secondary:61616)?randomize=false)
See http://activemq.apache.org/failover-transport-reference.htm<http://activemq.apache.org/failover-transport-reference.html>l for more info. Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Fri, Apr 23, 2010 at 11:32 AM, Kalpana Jalawadi < kalpana.jalaw...@gmail.com> wrote: > > Hi, > Could anybody post a code snippet for acquiring a connection & session over > a FailoverTransport. > > Thanks in advance. > -- > View this message in context: > http://old.nabble.com/Using-FailoverTransport-tp28338986p28338986.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >