[
https://issues.apache.org/jira/browse/CAMEL-10408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15597617#comment-15597617
]
Andrea Cosentino commented on CAMEL-10408:
------------------------------------------
I fixed the problem too. In case of forced shutdown during Suspend operation,
the initialized variable must be set to false, this way in the doResume method
we should be able to start the listenerContainer again.
https://github.com/apache/camel/commit/cd0c8c2fc70b5434a79af53e147a3e255c78c231
> Camel-JMS: Suspending/resuming won't work in case of timeout
> ------------------------------------------------------------
>
> Key: CAMEL-10408
> URL: https://issues.apache.org/jira/browse/CAMEL-10408
> Project: Camel
> Issue Type: Improvement
> Components: camel-jms
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Minor
> Fix For: 2.17.4, 2.18.1, 2.19.0, 2.16.5
>
>
> If you set for example a DefaultShutdownStrategy with a specific timeout and
> enqueue some messages on ActiveMQ that you'll consume from a consumer, in
> case you'll try to suspend the Consumer route and the timeout elapsed, the
> route will be stopped with a forced shutdown and then the doStop method will
> be used. In this scenario using resume won't have any effect since the
> listenerContainer will be null and unable to be restarted.
> I'll add just a simple message for this specific case suggesting the user to
> start the route again to make it works.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)