camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CAMEL-5555) In ScheduledRoutePolicy a suspended route cannot be started
Date Mon, 03 Sep 2012 02:40:08 GMT

     [ 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

Mime
View raw message