Getting Started with Quartz Scheduler : Downloading and Installing Quartz
Downloading and Installing Quartz
First, download the most recent stable release from http://quartz-scheduler.org/downloads. Registration is not required. Unpack the distribution and install it so that your application can see it.
The Quartz JAR Files
The Quartz package includes a number of jar files, located in root directory of the distribution. The main Quartz library is named quartz-xxx.jar (where xxx is a version number). In order to use any of Quartz's features, this jar must be located on your application's classpath.
If you use Quartz primarily within an application server environment, you can place the Quartz JAR within your application (.ear or .war file). If you want to make Quartz available to many applications, make sure it is in the classpath of your application server. If you are using it with a stand-alone application, place it in the application's classpath along with all of the other JARs your application depend on.
Quartz depends on a number of third-party libraries (in the form of jars) which are included in the distribution .zip file in the 'lib' directory. To use all the features of Quartz, these jars must also exist on your classpath. If you're building a stand-alone Quartz application, add all of the libraries to the classpath.
Note:  
In an application server environment, unexpected results might occur if the environment includes different versions of the same jar. For example, WebLogic includes an implementation of J2EE (inside weblogic.jar) which might differ from the one in servlet.jar. In this case, it is usually better to leave servlet.jar out of your application, so you know which classes are being utilized.
The Properties File
Quartz uses a properties file called quartz.properties. This file is not necessary at first, but it is required when you want to use anything other than the basic configuration. When you use this file, it must be in your classpath.
If you're building a web application (i.e., in the form of a .war file), you can put the quartz.properties file in the WEB-INF/classes folder to place it in the application’s classpath.
Tip:  
If you develop your application using WebLogic Workshop, you can keep your configuration files (including quartz.properties) in a project under the root of your application. When you package your application into an .ear file, the configuration project will be packaged into a .jar that is included in the final .ear. Doing this will automatically put the quartz.properties file in your classpath.
Copyright © 2010-2016 Software AG, Darmstadt, Germany.

Product Logo |   Feedback