title: Why Quartz job is not getting executed(although QUARTZ tables are getting updated with proper job details)
body: <p>I'm using Spring 3 with Quartz 1.8.6. I've defined SchedulerFactoryBean in the applicationcontext file in the following way:<br></p>
  
  <pre><code>&lt;bean id="quartzscheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean" lazy-init="false"&gt;
      &lt;property name="autoStartup"&gt;
          &lt;value&gt;true&lt;/value&gt;
      &lt;/property&gt;
      &lt;property name="quartzProperties"&gt;
          &lt;props&gt;
              &lt;prop key="org.quartz.scheduler.instanceId"&gt;AUTO&lt;/prop&gt;
              &lt;prop key="org.quartz.scheduler.instanceName"&gt;MyClusteredScheduler&lt;/prop&gt;
              &lt;prop key="org.quartz.jobStore.class"&gt;org.quartz.impl.jdbcjobstore.JobStoreTX&lt;/prop&gt;
              &lt;prop key="org.quartz.jobStore.driverDelegateClass"&gt;org.quartz.impl.jdbcjobstore.StdJDBCDelegate&lt;/prop&gt;
              &lt;prop key="org.quartz.jobStore.tablePrefix"&gt;QRTZ_&lt;/prop&gt;
              &lt;prop key="org.quartz.jobStore.isClustered"&gt;true&lt;/prop&gt;
              &lt;prop key="org.quartz.jobStore.clusterCheckinInterval"&gt;20000&lt;/prop&gt;
              &lt;prop key="org.quartz.jobStore.misfireThreshold"&gt;60000&lt;/prop&gt;
          &lt;/props&gt;
      &lt;/property&gt;
      &lt;property name="dataSource"&gt;
          &lt;ref bean="quartzdataSource" /&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="quartzdataSource"
              class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt;
      &lt;property name="driverClassName" value="com.mysql.jdbc.Driver" /&gt;
      &lt;property name="url" value="jdbc:mysql://localhost:3305/quartz" /&gt;
      &lt;property name="username" value="root" /&gt;
      &lt;property name="password" value="root" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>This is my job class which is beasically an entity bean class define in following way:<br></p>
  
  <pre><code>@Entity
  @Table(name = "DATABASEMONITOR")
  public class DatabaseMonitor implements Serializable, Job {
  
      @Id
      @GeneratedValue
      @Column(name = "ID", unique = true, nullable = false)
      private Integer id;
  
      @Column(name = "NAME", nullable = false)
      private String name;
  
      public DatabaseMonitor(String name, String sqlQuery){
          this.name = name;
          this.sqlQuery = sqlQuery;
      }
  
      @Override
      public void execute(JobExecutionContext context)
              throws JobExecutionException {
          System.out.println("inside job");
      }
  }
  </code></pre>
  
  <p>Here is my scheduler controller class:</p>
  
  <pre><code>public class SchedulerController {
  
      public static void addJob(DatabaseMonitor databaseMonitor){
  
          JobDetail job = new JobDetail();
          job.setName(databaseMonitor.getName());
          job.setJobClass(DatabaseMonitor.class);
  
          CronTrigger trigger = new CronTrigger();
          trigger.setName(databaseMonitor.getName());
          try {
              trigger.setCronExpression("0/2 * * * * ?");
              Scheduler scheduler = (Scheduler) BeansManager.getInstance().getBean("quartzscheduler");
              scheduler.scheduleJob(job, trigger);
          } catch (ParseException e) {
              e.printStackTrace();
          } catch (SchedulerException e) {
              e.printStackTrace();
          }
  
      }
  
  }
  </code></pre>
  
  <p>And from main class I'm calling this scheduling function to add job at runtime:</p>
  
  <pre><code>DatabaseMonitor databaseMonitor = new DatabaseMonitor(new Date().toString(), "query string");
          SchedulerController.addJob(databaseMonitor);
  </code></pre>
  
  <p>Now the problem is that everything is working fine without any exception and job details are getting updated in the predefined quartz database details. But the job is not getting executed. Can you please help me with this?</p>