aspose file tools*
The moose likes Java in General and the fly likes Restrict quartz scheduler to single instance. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Restrict quartz scheduler to single instance." Watch "Restrict quartz scheduler to single instance." New topic
Author

Restrict quartz scheduler to single instance.

Ragupathirajan Venkatesan
Ranch Hand

Joined: Aug 18, 2010
Posts: 62
Dear All,

I have configured the quartz scheduler with spring my application. It has two instances running and scheduler executing the job in two instance in the same time. Due to this my data base actions are happening twice(please do not consider the primary key). Please suggest me to restrict the scheduler to single instances. Means if one instance executing the job another instance should pick this job.

In some website I found the below code for restricting to single instance.




Unfortunately, it is telling that no table or view name found in the given data source. Do we need to create any table before using this org.quartz.impl.jdbcjobstore.JobStoreTX or any other ideas

Please suggest me to restrict the scheduler to single instance. Thanks in advance.
Ragupathirajan Venkatesan
Ranch Hand

Joined: Aug 18, 2010
Posts: 62
Dear All,

I got the answer for this solution and missed to update to ranch users. If we implement the JDBCJobstore in quartz, neet do create the set of tables recommended by quartz itself, more over quarzt itself supplying the sql create statement for this purpose in quartz distribution accordting to the uderlying database.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Restrict quartz scheduler to single instance.