Thanks for the quartzite..
I am having the same problem with jdbc.
I have read
http://www.clojurequartz.info/articles/durable_quartz_stores.htmlMy project.clj has :
:source-paths ["src/clj"]
:java-source-paths ["src/java"]
I have DynamicClassLoadHelper.java file in src/java/theophrastus directory.
I use lein to run :
lein run server
my quartz.properties file is :
org.quartz.scheduler.classLoadHelper.class=theophrastus.DynamicClassLoadHelper
org.quartz.threadPool.threadCount=
3 ## To use the JobStoreTX with Postgresql include the following:
## (Documentation for other database backends is below)
org.quartz.dataSource.db.driver=org.postgresql.Driver
org.quartz.dataSource.db.URL=<replaced by my jdbc conn>
org.quartz.dataSource.db.user=<replaced by my user>
org.quartz.dataSource.db.password=<replaced by my password>
In repl on executing :
(.getMetaData @scheduler)
#object[org.quartz.SchedulerMetaData 0x4ca70439 "Quartz Scheduler (v2.1.7) 'QuartzScheduler' with instanceId 'NON_CLUSTERED'\n Scheduler class: 'org.quartz.impl.StdScheduler' - running locally.\n Running since: Thu Feb 18 21:24:28 IST 2016\n Not currently in standby mode.\n Number of jobs executed: 11\n Using thread pool '
org.quartz.simpl.SimpleThreadPool' - with 3 threads.\n Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.\n"]
Please find "3 threads" in above output same as my config file.
My job using defjob runs fine when it is defined in same file as scheduler initialize is called.
However defjob referenced from another file does not work and throws
Exception in thread "main" java.lang.RuntimeException:
No such var: ttasks/NoOpJob, compiling:(theophrastus/utils.clj:19:14)
How can i solve the problem ?