camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: after setting trigger.repeatCount=1 then also going to infinite scheduler
Date Mon, 18 Nov 2013 10:27:34 GMT
Hi

repeatCount is for the simple trigger, not for cron.
So if you want something to only trigger one time, then remove the cron

On Fri, Nov 15, 2013 at 6:05 PM, ishwar <panjariishwar@gmail.com> wrote:
> hi. after setting repeatcount=1 then also my scheduler is  continuously
> running.. i dont know where i made mistake.
>
> this is my code.
>
> public class Schedule {
>
>           public  String SayService(String msg) {
>
>                              return (msg);
>          }
>
>         public static void main(String args[])throws Exception
>
>         {
>
>                 CamelContext context = new DefaultCamelContext();
>                 context.addRoutes(new RouteBuilder() {
>                     public void configure() {
>
>
> from("quartz2://myGroup/myTimerName?cron=0+0+*+*+*+?&trigger.repeatCount=1").bean(new
> Schedule(), "SayService('dd')");
>
>                     }
>
>                 });
>
>                 context.start();
>
>
>        }
>
> }
> i dont know why this running continuous.even after setting repeat=1.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/after-setting-trigger-repeatCount-1-then-also-going-to-infinite-scheduler-tp5743361.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

Mime
View raw message