You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Dayakar <da...@gmail.com> on 2013/07/23 11:43:45 UTC

How to Pause Quartz Componenent

Hi, 

I am using Quartz Component which run Daily at 20:00  I configured it as
from("quartz://myGroup/myTimerName?cron=0+0+20+1/1+*+?+*").routeid("MainRoute").to("jms:queue:outBoundQueue") 

I need to pause the Route for few Days

Iam using camelContext.suspendRoute("MainRoute");

But still Quartz is firing .

How can i pause Quartz Component

Thanks in Advance

Regards,
Dayakar



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-Pause-Quartz-Componenent-tp5736101.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to Pause Quartz Componenent

Posted by Christian Müller <ch...@gmail.com>.
I would suggest using camelContext.stopRoute("MainRoute").

Best,
Christian
Am 23.07.2013 11:48 schrieb "Dayakar" <da...@gmail.com>:

> Hi,
>
> I am using Quartz Component which run Daily at 20:00  I configured it as
>
> from("quartz://myGroup/myTimerName?cron=0+0+20+1/1+*+?+*").routeid("MainRoute").to("jms:queue:outBoundQueue")
>
> I need to pause the Route for few Days
>
> Iam using camelContext.suspendRoute("MainRoute");
>
> But still Quartz is firing .
>
> How can i pause Quartz Component
>
> Thanks in Advance
>
> Regards,
> Dayakar
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-Pause-Quartz-Componenent-tp5736101.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: How to Pause Quartz Componenent

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Yeah this is a bug
https://issues.apache.org/jira/browse/CAMEL-6614

You can use stop/start instead.

On Tue, Jul 23, 2013 at 11:43 AM, Dayakar <da...@gmail.com> wrote:
> Hi,
>
> I am using Quartz Component which run Daily at 20:00  I configured it as
> from("quartz://myGroup/myTimerName?cron=0+0+20+1/1+*+?+*").routeid("MainRoute").to("jms:queue:outBoundQueue")
>
> I need to pause the Route for few Days
>
> Iam using camelContext.suspendRoute("MainRoute");
>
> But still Quartz is firing .
>
> How can i pause Quartz Component
>
> Thanks in Advance
>
> Regards,
> Dayakar
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-Pause-Quartz-Componenent-tp5736101.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



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