This content has been marked as final.
Show 2 replies
-
1. Re: JPA consumer doing constant polling
davsclaus Dec 16, 2011 12:12 AM (in response to mohithanda)You can stop the route using API on CamelContext.
You can also use a RoutePolicy and attach to the route, and control logic to start/stop the route. We have out of the box policy that uses a timer/quartz cron scheduler, so you can define "opening hours" etc.
http://camel.apache.org/routepolicy
And there is also this FAQ to stop a route from a route
http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html
Also there is a delay option on the JPA endpoint, where you can specify polling frequency. eg delay=1h, to poll once per hour.
-
2. Re: JPA consumer doing constant polling
mohithanda Apr 11, 2012 9:46 PM (in response to mohithanda)Ok. Thanks Claus!