Ashwin Pejavar created CAMEL-5555:
-------------------------------------
Summary: 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
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