How to connect to a network of activemq brokers from a client application?

Posted by subh on Stack Overflow See other posts from Stack Overflow or by subh
Published on 2010-03-10T22:38:50Z Indexed on 2010/03/28 13:33 UTC
Read the original article Hit count: 282

Filed under:

I have setup a network of brokers in activemq, how do i connect to that from my client application

I tried with

network:static:(tcp://master1.IP:61616,tcp://master2.IP:61617) and

but I get the following exception

javax.jms.JMSException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Transport scheme NOT recognized: [network]; 

With

static:(tcp://master1.IP:61616,tcp://master2.IP:61617)

I get exception

javax.jms.JMSException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Transport scheme NOT recognized: [static]; 

Thanks

© Stack Overflow or respective owner

Related posts about activemq