Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup a quartz.config file in a simple Java application?

How can I setup a quartz.config file in a simple Java application?

I want to create this and reference it in my project so I can configure threads etc.

Thanks

like image 950
Michael W Avatar asked Jan 26 '11 13:01

Michael W


1 Answers

Take a look at the Quartz Quick Start Guide to see what a basic quartz.properties file looks like. This file must be placed on your classpath, for Quartz to use it. Example:

org.quartz.scheduler.instanceName = MyScheduler
org.quartz.scheduler.instanceId = 1
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.jobStore.class = org.quartz.simpl.RAMJobStore

Full documentation of available properties is available in the Quartz Configuration Reference.

like image 147
dogbane Avatar answered Sep 29 '22 11:09

dogbane