var id = db.getCollection('first_collection').find({jobClass:"com.example.CleanerJob"}, { _id: 1 }).next()._id;
db.getCollection('second_collection').findOne({"jobId":id});
db.getCollection('first_collection').findOne(id);
Test it on your local. If it is ok, replace all "findOne" with "remove"
RELATED:
quartz and mongo:
org.quartz.JobPersistenceException: Could not load job class [See nested exception: java.lang.ClassNotFoundException:
at com.novemberain.quartz.mongodb.JobConverter.toJobDetail
...
at com.novemberain.quartz.mongodb.MongoDBJobStore.triggersFired
...
Monday, July 17, 2017
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment