title: Quartz scheduler in cluster environment
body: <p>I am using </p>
  
  <pre><code>SchedulerFactory schedulerFactory = new StdSchedulerFactory();
  scheduler = schedulerFactory.getScheduler();
  scheduler.start();
  Trigger asapTrigger = getAsapTrigger();
  JobDetail asapJob = getAsapJobDetails();
  scheduler.scheduleJob(asapJob, asapTrigger);
  </code></pre>
  
  <p>This is working but when I go for cluster environment, 2 threads are running for the same job.</p>
  
  <p>I am using annotations not properties file. I want to run only one thread. Can someone help on this. How to configure?</p>
  
  <p>my code almost look like : <a href="http://k2java.blogspot.com/2011/04/quartz.html">http://k2java.blogspot.com/2011/04/quartz.html</a></p>