[ 
https://issues.apache.org/jira/browse/AMQ-4204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13529970#comment-13529970
 ] 

Timothy Bish commented on AMQ-4204:
-----------------------------------

It sounds like you'd be better off using a NetworkConnector and setting 
priority higher on the local consumer side.  The bridge would generally only be 
used without a local consumer.  Trying to start / stop the bridge based on the 
foreign connections state would just lead to out of order message delivery on 
the Queue.  
                
> Do not start JMS Bridge if foreign or local connection is failed
> ----------------------------------------------------------------
>
>                 Key: AMQ-4204
>                 URL: https://issues.apache.org/jira/browse/AMQ-4204
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: activemq-camel
>    Affects Versions: 5.6.0
>            Reporter: Yana G
>            Priority: Blocker
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> Have 2 JMSConnectors with one JMS Bridge in each. 
> Both having the same local JMSQueue and different remote JMSQueues.
> When start connector, one remote connection fails and it's reconnect is 
> scheduled.
> However, the corresponding Bridge is started. So, we have the following 
> behaviour:
> 1) JMS Message is published in ocal JMSQueue;
> 2) As Queue has 2(!) consumers, it can be processed by any of them;
> 3) If the broken bridge (without foreign connection) is selected, then 
> message will be not processed until the connection succeeds.
> We believe that this is wrong behaviour, as JMS messages are not processed, 
> even if there is one proper brigde exists on local queue.
> We expect the following behaviour:
> When foreign (or local) connection fails, do not start corresponding bridges.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to