invalid broker URI failover

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

invalid broker URI failover

arun196
what am I doing wrong please? I have failover listed as below in context.xml. I get invalid broker exception.



<Resource name="jms/mqConnectionFactory"
                     auth="Container"
                     type="org.apache.activemq.ActiveMQConnectionFactory"
                     description="JMS Connection Factory"
              factory="org.apache.activemq.jndi.JNDIReferenceFactory"
              brokerURL="failover(tcp://localhost:61616, tcp://localhost:61617)" />
 
 
Caused by: javax.naming.NamingException: Invalid broker URI: failover(tcp://localhost:61616, tcp://localhost:61617)
Reply | Threaded
Open this post in threaded view
|

Re: invalid broker URI failover

tabish121@gmail.com
On 02/25/2015 05:37 PM, arun196 wrote:
> brokerURL="failover(tcp://localhost:61616,
> tcp://localhost:61617)"
Try

brokerURL="failover:(tcp://localhost:61616,
tcp://localhost:61617)"


--
Tim Bish
Sr Software Engineer | RedHat Inc.
[hidden email] | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/

Reply | Threaded
Open this post in threaded view
|

Re: invalid broker URI failover

arun196
thank you!