Closed titogarcia closed 4 years ago
The easiest and safest way I have found is to define my own extension of MongoDBStore, taking the database instance from a static field:
public static class MyMongoDBJobStore extends MongoDBJobStore { public MyMongoDBJobStore() { super(Mongo.database); } }
Then setting org.quartz.jobStore.class to this class.
org.quartz.jobStore.class
Is there a different recommended way?
Thanks
Unless you start Quartz and configure it using Java code, I don't think this is something that this project supports.
The easiest and safest way I have found is to define my own extension of MongoDBStore, taking the database instance from a static field:
Then setting
org.quartz.jobStore.class
to this class.Is there a different recommended way?
Thanks