[
https://issues.apache.org/jira/browse/CAMEL-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988561#action_12988561
]
Claus Ibsen commented on CAMEL-3598:
------------------------------------
Ah yeah this is when we are stopping.
Your situations is when starting :)
But using those AMQ option and the {{testConnectionOnStartup}} camel jms
options should really do the trick.
> camel-jms - ListenerContainer should signal that running is not allowed when
> its being stopped
> ----------------------------------------------------------------------------------------------
>
> Key: CAMEL-3598
> URL: https://issues.apache.org/jira/browse/CAMEL-3598
> Project: Camel
> Issue Type: Improvement
> Components: camel-jms
> Affects Versions: 2.5.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.7.0
>
>
> When you stop a JmsConsumer (also when using @Consume) we can detect this and
> signal to Spring DefaultMessageListenerContainer in the {{runningAllowed}}
> method. This allows to stop the listener faster and in a more graceful manner.
> For example ActiveMQ consumer is not likely configured with failover, and
> thus the listener container will try to recover, even though we have asked
> the Consumer to stop.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.