You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2012/09/03 04:40:08 UTC

[jira] [Assigned] (CAMEL-5555) In ScheduledRoutePolicy a suspended route cannot be started

     [ https://issues.apache.org/jira/browse/CAMEL-5555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-5555:
-----------------------------------

    Assignee: Willem Jiang
    
> In ScheduledRoutePolicy a suspended route cannot be started
> -----------------------------------------------------------
>
>                 Key: CAMEL-5555
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5555
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-quartz
>    Affects Versions: 2.10.0
>            Reporter: Ashwin Pejavar
>            Assignee: Willem Jiang
>
> If a route is suspended using the ScheduledRoutePolicy and its subclasses (CronScheduledRoutePolicy), it cannot be resumed or started.
> Looking at the code in ScheduledRoutePolicy.onJobExecute(), on start/resume actions, the route status is first checked and must be stopped or suspended before any actions is taken.
> Suspension of a route, only suspends the consumer and not the route, and hence the start/resume after a suspend does nothing.
> One solution could be to also check the status of the consumer on start/resume. This would require adding a isSuspended() to serviceHelper and should be relatively straightforward.

--
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