You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Robert Elliot (JIRA)" <ji...@apache.org> on 2014/09/24 00:13:34 UTC

[jira] [Commented] (CAMEL-7855) If you suspend a JMS route that is stopped, calling resume on it does not work and reports no error

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

Robert Elliot commented on CAMEL-7855:
--------------------------------------

I can see two fairly simple solutions:

* Throw an exception if a user tries to suspend a Stopped route
* Do nothing if a user tries to suspend a Stopped route - leave it in state Stopped

The second seems more consistent with current behaviour.

> If you suspend a JMS route that is stopped, calling resume on it does not work and reports no error
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-7855
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7855
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jms
>    Affects Versions: 2.14.0
>         Environment: All
>            Reporter: Robert Elliot
>            Priority: Minor
>         Attachments: RouteLifecycleTest.java, pom.xml
>
>
> If a route that consumes from JMS is in state Stopped, and first Suspend and then Resume are called upon it, the route reports itself as being in state Started. However, it is not actually consuming anything from the endpoint.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)