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
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("
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
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.