Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Restrict quartz scheduler to single instance.

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
crispy bacon. crispy tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic