title: How to set dataSource in quartz schedular. [ERROR] org.quartz.SchedulerException: Could not initialize DataSource: myDS
body: <p>This is my config file quartz.properties</p>
  
  <pre><code>org.quartz.scheduler.instanceName= LivingOrdering
  org.quartz.scheduler.instanceId=99199
  org.quartz.scheduler.rmi.export=false
  org.quartz.scheduler.rmi.proxy=false
  org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
  org.quartz.threadPool.threadCount=3
  org.quartz.context.key.QuartzTopic=QuartzPorperties
  org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX
  org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  org.quartz.jobStore.tablePrefix=qrtz_
  org.quartz.jobStore.dataSource=quartzDataSource
  org.quartz.dataSource.quartzDataSource.driver=org.postgresql.Driver
  org.quartz.dataSource.quartzDataSource.URL=jdbc:postgresql://localhost:5432/quartz
  org.quartz.dataSource.quartzDataSource.user=admin
  org.quartz.dataSource.quartzDataSource.password=admin
  org.quartz.dataSource.quartzDataSource.maxConnections=300
  </code></pre>
  
  <p>I am getting error at the line -:  </p>
  
  <pre class="lang-java prettyprint-override"><code>Scheduler scheduler = new StdSchedulerFactory().getScheduler();
  </code></pre>
  
  <pre><code>Error: org.quartz.SchedulerException: Could not initialize DataSource: quartzDataSource
  </code></pre>