Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Mongo DB JobStore for Quartz
Java Shell
Branch: master

Merge pull request #8 from mlxmlx/patch-1

Add support to CronTrigger
latest commit 2d797b641c
@mike-saparov mike-saparov authored

README.md

A MongoDB JobStore for Quartz.

WARNING: not all functionality works. You may have to hack this if you use it. On the bright side, there is a lot less to hack than if you didn't have this at all.

The primary thing that works and is tested is SimpleTriggers across multiple Quartz instances where triggers are created on application startup.

To configure, set your Quartz properties to something like this:

# Use the MongoDB store
org.quartz.jobStore.class=com.mulesoft.quartz.mongo.MongoDBJobStore
# comma separated list of mongodb hosts/replica set seeds
org.quartz.jobStore.addresses=host1,host2
# Mongo database name
org.quartz.jobStore.dbName=quartz
# Will be used to create collections like mycol_jobs, mycol_triggers, mycol_calendars, mycol_locks
org.quartz.jobStore.collectionPrefix=mycol
# not sure why Quartz requires this, but it does and we don't use it
org.quartz.threadPool.threadCount=1
Something went wrong with that request. Please try again.