Hi Patrick,
Yes i do have.
I am trying to achieve the same. I did the following changes
1. Quartz.properties in my resource bundle with
org.quartz.jobStore.isClustered = true
2. Made DB entries.
3. This is my route builder -
QuartzComponent component = new QuartzComponent();
component.setPropertiesFile("quartz.properties");
getContext().addComponent("quartz", component);
We are using CronScheduledRoutePolicy to start the routes.
Everything works fine. When the routes are deployed in a clustered
environment of 2 servers, 2 entries are made in the quartz tables. The route
starts alternatively, but at times i get this error
Job threw an unhandled exception. [See nested exception:
java.lang.NullPointerException]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.lang.NullPointerException
at
org.apache.camel.routepolicy.quartz.ScheduledJob.execute(ScheduledJob.java:42)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
... 1 more
This does not start the job in both the servers
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-JPA-Clustered-Deployment-Quartz-Scheduling-tp5733292p5736642.html
Sent from the Camel - Users mailing list archive at Nabble.com.