You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by vishal1981 <vi...@ericsson.com> on 2013/02/08 23:04:58 UTC

Quartz triggers being deleted when shutting down Camel.

Hi,
I am using Quartz as my starting endponig. I have defined the the route as
follows,

from("quartz://myTimer?trigger.repeatInterval=120000&trigger.repeatCount=-1&stateful=true")
    	  .log("Test");        
When Camel comes up I do see an entry being created in the database for the
trigger and for the job. However once my test finishes and Camel is stopped
that entry is removed from the database and I see in the logs that the
quartz job was stopped and the trigger was deleted - 'DEBUG - Deleting job
using trigger: Camel/myTimer'.
I would like the trigger to persist so that it can be used to calculate a
misfire next time when the test is re-ran and Camel comes up.
Is there a way to do that?

thanks,
-v-




--
View this message in context: http://camel.465427.n5.nabble.com/Quartz-triggers-being-deleted-when-shutting-down-Camel-tp5727257.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Quartz triggers being deleted when shutting down Camel.

Posted by vishal1981 <vi...@ericsson.com>.
Also,
I see the following in the QuartzComponent.class,
            // fast forward start time to now, as we do not want any misfire
to kick in
            trigger.setStartTime(new Date());
which would also suppress Quartz logic to handle misfires which is something
we actually need.



--
View this message in context: http://camel.465427.n5.nabble.com/Quartz-triggers-being-deleted-when-shutting-down-Camel-tp5727257p5727364.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Quartz triggers being deleted when shutting down Camel.

Posted by vishal1981 <vi...@ericsson.com>.
Alright. Will create a Jira for it.
However I had one more question related to the same issue. If Camel would
not delete the job and the trigger, how would it realize that the quartz
endpoint being created is not a new one but rather a one which was defined
earlier. In other words,  if I had a route defined such as
from(quartz://xyz).to .... and I shutdown camel and it didn't delete the job
and trigger; now when Camel is restarted and the route is  again added to
the camel context would it know that this is the old quartz job and hence
calculate any misfires?

Thanks,
-v-



--
View this message in context: http://camel.465427.n5.nabble.com/Quartz-triggers-being-deleted-when-shutting-down-Camel-tp5727257p5727292.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Quartz triggers being deleted when shutting down Camel.

Posted by vishal1981 <vi...@ericsson.com>.
https://issues.apache.org/jira/browse/CAMEL-6067



--
View this message in context: http://camel.465427.n5.nabble.com/Quartz-triggers-being-deleted-when-shutting-down-Camel-tp5727257p5727365.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Quartz triggers being deleted when shutting down Camel.

Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Feb 8, 2013 at 11:04 PM, vishal1981
<vi...@ericsson.com> wrote:
> Hi,
> I am using Quartz as my starting endponig. I have defined the the route as
> follows,
>
> from("quartz://myTimer?trigger.repeatInterval=120000&trigger.repeatCount=-1&stateful=true")
>           .log("Test");
> When Camel comes up I do see an entry being created in the database for the
> trigger and for the job. However once my test finishes and Camel is stopped
> that entry is removed from the database and I see in the logs that the
> quartz job was stopped and the trigger was deleted - 'DEBUG - Deleting job
> using trigger: Camel/myTimer'.
> I would like the trigger to persist so that it can be used to calculate a
> misfire next time when the test is re-ran and Camel comes up.
> Is there a way to do that?
>

No.

Fell free to log a JIRA ticket for an new feature, so we can add an
option deleteJob=true|false, so people can control this.
http://camel.apache.org/support

> thanks,
> -v-
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Quartz-triggers-being-deleted-when-shutting-down-Camel-tp5727257.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen