camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dancerjohn <>
Subject QuartzComponent startDelayedSeconds bug
Date Mon, 24 Apr 2017 12:53:15 GMT
I believe there is a bug in the QuartzComponent WRT startDelayedSeconds. I am
starting here instead of creating a ticket per the request on the forum.
This is how to demonstrate the issue:

create route with start delay:

create another route with NO start delay

Behavior is that route2 will have a start delay if it is created AFTER
route1 but NOT have a start delay if it is created BEFORE route1. This is
because the QuartzComponent is using a field for the startDelaySeconds and
not resetting it to null of the URI parameters to not have a
startDelaySeconds set.

protected Endpoint More ...createEndpoint(String uri, String remaining,
Map<String, Object> parameters) throws Exception {
        // Get couple of scheduler settings
        Integer startDelayedSeconds = getAndRemoveParameter(parameters,
"startDelayedSeconds", Integer.class);
        if (startDelayedSeconds != null) {
               .............. this.startDelayedSeconds =

So only if the variable "startDelayedSeconds" is not null will the
"this.startDelayedSeconds" be reset to the value desired by the URI.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message