Re: Junit Testing Master/Slave Program Hangs forever..

2011-06-27 Thread Vijay
Hope this help others: I had to start the Master in completely new thread and it works with below code... Thread t = new Thread(new Runnable() { public void run() { try { BrokerFactoryBean masterBroker

Re: Junit Testing Master/Slave Program Hangs forever..

2011-06-27 Thread Vijay
As suggested, I changed my code to this, still no luck.Any further suggestions pls. public void testMasterSlaveFailover() throws Exception { cleanupDir("activemq-data"); BrokerFactoryBean masterBrokerFactory = new BrokerFactoryBean(new ClassPathResource("

Re: Junit Testing Master/Slave Program Hangs forever..

2011-06-26 Thread Stan Lewis
move the calls to "waitUntilStarted" so they're *after* the calls to start the master and slave, should do the trick... On Fri, Jun 24, 2011 at 3:55 PM, Vijay wrote: > For Junit testing failover , I want to start Master/slave instances with > following piece of code. After Master starts, it hangs

Re: Junit Testing Master/Slave Program Hangs forever..

2011-06-24 Thread Vijay
A type in my original post: For masterConnectorURI, I am using tcp://localhost:61616 -- View this message in context: http://activemq.2283324.n4.nabble.com/Junit-Testing-Master-Slave-Program-Hangs-forever-tp3623477p3623481.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.