This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reconnect to activemq

 
Rajeev Mutalik
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a consumer which connects to activemq. Problem is when the activemq is restarted my consumer does not reconnect to activemq. So I need to restart my application for that. Can you please help me on how to go abt auto reconnect to activemq.

Got this info from apache website, but not sure where to edit the configuration.
failover: (tcp://primary:61616,tcp://secondary:61616)?randomize=false
failover: (tcp://localhost:61616,tcp://remotehost:61616)?initialReconnectDelay=100

Is it that I need to edit the following section of my broker-config.xml:
<transportConnectors>
<transportConnector name="local.broker" uri="tcp://localhost:61616"/>
</transportConnectors>

Have inserted space after "failover:" to avoid emoticons.
Thanks in advance.
Rajeev
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic