Re: Using FailoverTransport

2010-04-26 Thread Kalpana Jalawadi
Thank you so much for the test case example! Gary Tully wrote: > > No need to reference the FailoverTransportFactory, it is easier than you > think, read again Dejan's reply and have a look at one of the tests for > the > failover feature: > http://svn.apache.org/viewvc/activemq/trunk/activemq

Re: Using FailoverTransport

2010-04-26 Thread Gary Tully
No need to reference the FailoverTransportFactory, it is easier than you think, read again Dejan's reply and have a look at one of the tests for the failover feature: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/FailoverConsumerTest.

Re: Using FailoverTransport

2010-04-24 Thread Kalpana Jalawadi
Hi, Thanks for the reply. Below is the code snippet I'm using, kindly check if this is the right way. try { failoverTransportFactory = new FailoverTransportFactory(); Map params = new HashMap(); failoverTransport = failoverTransportFactory.

Re: Using FailoverTransport

2010-04-23 Thread Dejan Bosanac
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