On Mon, Nov 26, 2012 at 5:26 PM, klauss42 <[email protected]> wrote:
> I use the Quartz component:
>
> <camel:route>
>         <camel:from uri="quartz://mailSender/0?cron=0,30+*+*+*+*+?" />
>         ....
> </camel:route>
>
> This route runs every 30 seconds which is the desired behavior.
>

Ah yeah I guess thats the current correct behavior. I think what would
be needed is to add new functionality to camel-quartz, to allow you to
configure an option to limit number of current jobs.

I assume we can use the Quartz API to query it if the mailSender job
is currently running or not. And then just avoid triggering the route
if a limit is reached.

Maybe if you have the time, could look into this?


> Klaus
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-avoid-starting-a-route-multiple-times-tp5723236p5723248.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: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to