[
https://issues.apache.org/jira/browse/AMQ-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13069069#comment-13069069
]
Trey Hyde commented on AMQ-2455:
--------------------------------
I looked at the code here a while back... it only tries to reconnect 10 times
if there is an issue (I can't comment if that actually works or not). If
the remote connection is down or restarting or any reason can be contacted in
the fraction of a second 10 sequential attempts take then it will give up.
There is no thread/timer that will retry at some later time. I also couldn't
find any JMX exposed methods that would allow me to manually attempt a
reconnect without restarting AMQ.
> Need a facility to retry jms connections to a foreign provider by the
> ActiveMQ JMS bridge.
> ------------------------------------------------------------------------------------------
>
> Key: AMQ-2455
> URL: https://issues.apache.org/jira/browse/AMQ-2455
> Project: ActiveMQ
> Issue Type: New Feature
> Components: Broker
> Environment: Debian Lenny. ActiveMQ 5.2. OpenJMS-0.7.7-beta-1
> Reporter: Billy Buzzard
> Assignee: Rob Davies
> Fix For: 5.4.0
>
> Attachments: bridge-reconnect.patch, test.zip
>
>
> I followed an example
> (http://www.codeproject.com/KB/docview/jms_to_jms_bridge_activem.aspx?display=Print)
> showing how to set up a bridge between OpenJMS and ActiveMQ. The bridge
> seems to work perfectly until I stop then restart OpenJMS while leaving
> ActiveMQ running. Once I restart OpenJMS I try sending a message from it to
> ActiveMQ, but ActiveMQ doesn't receive it until I stop and restart ActiveMQ.
> I can recreate the exact same problem by starting ActiveMQ first and then
> OpenJMS. After a little more reading it looks like failover should fix this
> problem, but I tried it and it didn't work. I submitted a question to
> ActiveMQ and Gary Tully responded and told me there is currently no facility
> to retry jms connections to a foreign provider by the ActiveMQ JMS bridge.
> Assuming that remote end-points may not be using ActiveMQ then I would think
> this would be a very important feature to have.
> Here's a link to our conversation:
> http://www.nabble.com/How-to-configure-failover-for-jmsBridgeConnector-td25909047.html#a25918800
> The conversation also contains an attachment showing me configuration file.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira