Showing posts with label quartz. Show all posts
Showing posts with label quartz. Show all posts

Monday, July 22, 2013

Quartz executes twice on Weblogic (Spring 3.2 + Quartz 1.8.6 + Weblogic 10.3g)

If you are developing some jobs with quartz probably you will figure out if your application will be well received by Weblogic, after a few hours some unittest I have the problem that quartz execute twice the method cointained in the job, If you try to debug the application on Weblogic you will be thinking alot of theories my solution was the following steps:

1. Create Quartz Database for clustering, this is at: 

../quartz-1.8.6/docs/dbTables

After executing the script in the database you will have to configure the quartz.properties:


This property file should be included in classpath, to charge this file you will have to add the following lines in applicationContext.xml:



Having this configuration will be loaded the ClusterManager, and you job executes only one time.

Best Regards,