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 <panjariish...@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: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen