Anonymous avatar Anonymous committed 323373c

Submitted by: Bill Kratzer (bill@thekratzers.com)
Summary: Example shell scripts and batch files for examples 1 through 10.
To Do: Implement examples 11-13.

git-svn-id: http://svn.opensymphony.com/svn/quartz/trunk@36 69f7d36a-ea1c-0410-88ea-9fd03e4c9665

Comments (0)

Files changed (32)

quartz_1x/examples/example1/example1.bat

+@echo off
+
+rem Set Quartz to the base directory of the Quartz Distribution
+@SET QUARTZ=..\..
+
+rem !!!!!!! Please read important information. !!!!!!
+rem If "java" is not in your path, please set the path 
+rem for Java 2 Runtime Environment in the path variable below
+rem for example :
+rem @SET PATH=D:\jdk1.3.1;%PATH%
+rem 
+
+@SET QUARTZ_CP=%QUARTZ%\lib\commons-collections.jar;%QUARTZ%\lib\commons-logging.jar;%QUARTZ%\lib\commons-dbcp-1.1.jar;%QUARTZ%\lib\commons-pool-1.1.jar;%QUARTZ%\lib\log4j-1.2.8.djar;%QUARTZ%\lib\jdbc2_0-stdext.jar;%QUARTZ%\lib\quartz.jar;%QUARTZ%\lib\examples.jar
+
+rem Set LOG4J props if you are interested in setting up
+rem a configuraiton file for log4j logging
+rem @SET LOG4J_PROPS="-Dlog4j.configuration=log4j.properties"
+
+"java" -cp "%QUARTZ_CP%" %LOG4J_PROPS% org.quartz.examples.example1.SimpleExample

quartz_1x/examples/example1/example1.sh

+#!/bin/sh
+
+# You May Need To Change this to your Quartz installation root
+QUARTZ=../..
+
+# Change this to your JDK installation root
+#
+#JAVA_HOME=/usr/java/j2sdk1.4.0_01
+
+JRE=$JAVA_HOME/jre
+JAVA=$JRE/bin/java
+
+QUARTZ_CP=""
+for jarfile in $QUARTZ/lib/*.jar; do
+  QUARTZ_CP=$QUARTZ_CP:$jarfile
+done
+
+echo "Classpath: " $QUARTZ_CP
+
+# Uncomment the following line if you would like to set log4j 
+# logging properties
+#
+#LOGGING_PROPS="-Dlog4j.configuration=log4j.properties"
+
+$JAVA -classpath $QUARTZ_CP $LOGGING_PROPS org.quartz.examples.example1.SimpleExample
+

quartz_1x/examples/example1/readme.txt

+Example 1
+=========
+
+Overview:
+=========
+This example will demonstrate how to quickly get quartz up 
+and running and how to schedule a simple job.
+
+
+Running the Example:
+====================
+1. Windows users - Modify the example1.bat file (if necessary) 
+to set your JAVA_HOME.  Run example1.bat
+
+2. UNIX/Linux users - Modify the example1.sh file (if necessary)
+to set your JAVA_HOME.  Execute example1.sh
+
+
+Configuration Files:
+====================
+1.  You can decide to specify a log4j.properties file to
+control logging output (optional)

quartz_1x/examples/example10/example10.bat

+@echo off
+
+rem Set Quartz to the base directory of the Quartz Distribution
+@SET QUARTZ=..\..
+
+rem !!!!!!! Please read important information. !!!!!!
+rem If "java" is not in your path, please set the path 
+rem for Java 2 Runtime Environment in the path variable below
+rem for example :
+rem @SET PATH=D:\jdk1.3.1;%PATH%
+rem 
+
+@SET QUARTZ_CP=%QUARTZ%\lib\commons-beanutils.jar;%QUARTZ%\lib\commons-collections.jar;%QUARTZ%\lib\commons-digester.jar;%QUARTZ%\lib\commons-logging.jar;%QUARTZ%\lib\commons-dbcp-1.1.jar;%QUARTZ%\lib\commons-pool-1.1.jar;%QUARTZ%\lib\log4j-1.2.8.djar;%QUARTZ%\lib\jdbc2_0-stdext.jar;%QUARTZ%\lib\quartz.jar;%QUARTZ%\lib\examples.jar
+
+rem Set LOG4J props if you are interested in setting up
+rem a configuraiton file for log4j logging
+rem @SET LOG4J_PROPS="-Dlog4j.configuration=log4j.properties"
+
+rem Set the location and name of the quartz.properties file
+@SET QUARTZ_PROPS="-Dorg.quartz.properties=quartz.properties"
+"java" -cp "%QUARTZ_CP%" %QUARTZ_PROPS% %LOG4J_PROPS% org.quartz.examples.example10.PlugInExample

quartz_1x/examples/example10/example10.sh

+#!/bin/sh
+
+# You May Need To Change this to your Quartz installation root
+QUARTZ=../..
+
+# Change this to your JDK installation root
+#
+#JAVA_HOME=/usr/java/j2sdk1.4.0_01
+
+JRE=$JAVA_HOME/jre
+JAVA=$JRE/bin/java
+
+QUARTZ_CP=""
+for jarfile in $QUARTZ/lib/*.jar; do
+  QUARTZ_CP=$QUARTZ_CP:$jarfile
+done
+
+echo "Classpath: " $QUARTZ_CP
+
+# Uncomment the following line if you would like to set log4j 
+# logging properties
+#
+#LOGGING_PROPS="-Dlog4j.configuration=log4j.properties"
+
+# Set the name and location of the quartz.properties file
+QUARTZ_PROPS="-Dorg.quartz.properties=quartz.properties"
+
+$JAVA -classpath $QUARTZ_CP $QUARTZ_PROPS $LOGGING_PROPS org.quartz.examples.example10.PlugInExample
+

quartz_1x/examples/example10/jobs.xml

+<?xml version='1.0' encoding='utf-8'?>
+
+<quartz xmlns="http://www.quartzscheduler.org/ns/quartz"
+
+	      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
+	      xsi:schemaLocation="http://www.quartzscheduler.org/ns/quartz http://www.quartzscheduler.org/ns/quartz/job_scheduling_data_1_1.xsd"
+
+	      version="1.1">
+
+
+	<calendar class-name="org.quartz.impl.calendar.HolidayCalendar" replace="true">
+
+		<name>holidayCalendar</name>
+
+		<description>HolidayCalendar</description>
+
+		<base-calendar class-name="org.quartz.impl.calendar.WeeklyCalendar">
+
+			<name>weeklyCalendar</name>
+
+			<description>WeeklyCalendar</description>
+
+			<base-calendar class-name="org.quartz.impl.calendar.AnnualCalendar">
+
+				<name>annualCalendar</name>
+
+				<description>AnnualCalendar</description>
+
+			</base-calendar>
+
+		</base-calendar>
+
+	</calendar>
+  <job>
+    <job-detail>
+      <name>testJob1</name>
+      <group>testJobs</group>
+      <job-class>org.quartz.examples.example10.SimpleJob</job-class>
+      <volatility>false</volatility>
+      
+      <durability>false</durability>
+      <recover>false</recover>
+      
+      <job-data-map allows-transient-data="true">
+
+    		<entry>
+    			
+    		  <key>test1</key>
+    		  
+    		  <value>test1</value>
+    		  
+    		</entry>
+    		
+    		<entry>
+    			
+    		  <key>test2</key>
+    		  
+    		  <value>test2</value>
+    		  
+    		</entry>
+    		
+    	</job-data-map>
+    </job-detail>
+    <trigger>
+      <cron>
+        <name>testTrigger1</name>
+        <group>testJobs</group>
+        <job-name>testJob1</job-name>
+        <job-group>testJobs</job-group>
+        <!-- <start-time>2003-12-17 2:15:00 pm</start-time>      -->
+        <!-- <end-time>2013-12-17 2:15:00 pm</end-time>      -->
+        <cron-expression>0/15 * * ? * *</cron-expression> <!-- every 15 seconds... -->
+      </cron>
+    </trigger>
+  </job>
+
+  <job>
+    <job-detail>
+      <name>testJob2</name>
+      <group>testJobs</group>
+      <job-class>org.quartz.examples.example10.SimpleJob</job-class>
+      <volatility>false</volatility>
+      
+      <durability>false</durability>
+      <recover>false</recover>
+    </job-detail>
+    <trigger>
+      <simple>
+        <name>testTrigger2</name>
+        <group>testJobs</group>
+        
+        <calendar-name>holidayCalendar</calendar-name>
+        <job-name>testJob2</job-name>
+        <job-group>testJobs</job-group>
+        <start-time>2004-02-26T12:26:00</start-time>      
+        <repeat-count>10</repeat-count>
+        <repeat-interval>5000</repeat-interval>
+      </simple>
+    </trigger>
+  </job>
+
+</quartz>

quartz_1x/examples/example10/quartz.properties

+
+#============================================================================
+# Configure Main Scheduler Properties  
+#============================================================================
+
+org.quartz.scheduler.instanceName = TestScheduler
+org.quartz.scheduler.instanceId = AUTO
+
+#============================================================================
+# Configure ThreadPool  
+#============================================================================
+
+org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
+org.quartz.threadPool.threadCount = 3
+org.quartz.threadPool.threadPriority = 5
+
+#============================================================================
+# Configure JobStore  
+#============================================================================
+
+org.quartz.jobStore.misfireThreshold = 60000
+
+org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore
+
+#org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
+#org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.PostgreSQLDelegate
+#org.quartz.jobStore.useProperties = false
+#org.quartz.jobStore.dataSource = myDS
+#org.quartz.jobStore.tablePrefix = QRTZ_
+#org.quartz.jobStore.isClustered = false
+
+#============================================================================
+# Configure Datasources  
+#============================================================================
+
+#org.quartz.dataSource.myDS.driver = org.postgresql.Driver
+#org.quartz.dataSource.myDS.URL = jdbc:postgresql://localhost/dev
+#org.quartz.dataSource.myDS.user = jhouse
+#org.quartz.dataSource.myDS.password = 
+#org.quartz.dataSource.myDS.maxConnections = 5
+
+
+
+#============================================================================
+# Configure Plugins 
+#============================================================================
+
+org.quartz.plugin.triggHistory.class = org.quartz.plugins.history.LoggingJobHistoryPlugin
+
+org.quartz.plugin.jobInitializer.class = org.quartz.plugins.xml.JobInitializationPlugin
+org.quartz.plugin.jobInitializer.fileName = jobs.xml
+org.quartz.plugin.jobInitializer.overWriteExistingJobs = true
+org.quartz.plugin.jobInitializer.failOnFileNotFound = true
+org.quartz.plugin.jobInitializer.validating = false
+org.quartz.plugin.jobInitializer.validatingSchema = true
+org.quartz.plugin.jobInitializer.scanInterval = 10

quartz_1x/examples/example10/readme.txt

+Example 10
+==========
+
+Overview:
+=========
+This example demonstrates how to use Job Listeners in
+Quartz to have the completion of one job trigger another job.
+
+
+Running the Example:
+====================
+1. Windows users - Modify the example10.bat file (if necessary) 
+to set your JAVA_HOME.  Run example10.bat
+
+2. UNIX/Linux users - Modify the example10.sh file (if necessary)
+to set your JAVA_HOME.  Execute example10.sh
+
+
+Configuration Files:
+====================
+1.  You can decide to specify a log4j.properties file to
+control logging output (optional)
+
+2.  This example uses the quartz.properties file to configure
+quartz to use the jobs.xml file for job configuration

quartz_1x/examples/example2/example2.bat

+@echo off
+
+rem Set Quartz to the base directory of the Quartz Distribution
+@SET QUARTZ=..\..
+
+rem !!!!!!! Please read important information. !!!!!!
+rem If "java" is not in your path, please set the path 
+rem for Java 2 Runtime Environment in the path variable below
+rem for example :
+rem @SET PATH=D:\jdk1.3.1;%PATH%
+rem 
+
+@SET QUARTZ_CP=%QUARTZ%\lib\commons-collections.jar;%QUARTZ%\lib\commons-logging.jar;%QUARTZ%\lib\commons-dbcp-1.1.jar;%QUARTZ%\lib\commons-pool-1.1.jar;%QUARTZ%\lib\log4j-1.2.8.djar;%QUARTZ%\lib\jdbc2_0-stdext.jar;%QUARTZ%\lib\quartz.jar;%QUARTZ%\lib\examples.jar
+
+rem Set LOG4J props if you are interested in setting up
+rem a configuraiton file for log4j logging
+rem @SET LOG4J_PROPS="-Dlog4j.configuration=log4j.properties"
+
+"java" -cp "%QUARTZ_CP%" %LOG4J_PROPS% org.quartz.examples.example2.SimpleTriggerExample

quartz_1x/examples/example2/example2.sh

+#!/bin/sh
+
+# You May Need To Change this to your Quartz installation root
+QUARTZ=../..
+
+# Change this to your JDK installation root
+#
+#JAVA_HOME=/usr/java/j2sdk1.4.0_01
+
+JRE=$JAVA_HOME/jre
+JAVA=$JRE/bin/java
+
+QUARTZ_CP=""
+for jarfile in $QUARTZ/lib/*.jar; do
+  QUARTZ_CP=$QUARTZ_CP:$jarfile
+done
+
+echo "Classpath: " $QUARTZ_CP
+
+# Uncomment the following line if you would like to set log4j 
+# logging properties
+#
+#LOGGING_PROPS="-Dlog4j.configuration=log4j.properties"
+
+$JAVA -classpath $QUARTZ_CP $LOGGING_PROPS org.quartz.examples.example2.SimpleTriggerExample
+

quartz_1x/examples/example2/readme.txt

+Example 2
+=========
+
+Overview:
+=========
+This example will demonstrate how to use Simple Triggers.
+
+
+Running the Example:
+====================
+1. Windows users - Modify the example2.bat file (if necessary) 
+to set your JAVA_HOME.  Run example2.bat
+
+2. UNIX/Linux users - Modify the example2.sh file (if necessary)
+to set your JAVA_HOME.  Execute example2.sh
+
+
+Configuration Files:
+====================
+1.  You can decide to specify a log4j.properties file to
+control logging output (optional)

quartz_1x/examples/example3/example3.bat

+@echo off
+
+rem Set Quartz to the base directory of the Quartz Distribution
+@SET QUARTZ=..\..
+
+rem !!!!!!! Please read important information. !!!!!!
+rem If "java" is not in your path, please set the path 
+rem for Java 2 Runtime Environment in the path variable below
+rem for example :
+rem @SET PATH=D:\jdk1.3.1;%PATH%
+rem 
+
+@SET QUARTZ_CP=%QUARTZ%\lib\commons-collections.jar;%QUARTZ%\lib\commons-logging.jar;%QUARTZ%\lib\commons-dbcp-1.1.jar;%QUARTZ%\lib\commons-pool-1.1.jar;%QUARTZ%\lib\log4j-1.2.8.djar;%QUARTZ%\lib\jdbc2_0-stdext.jar;%QUARTZ%\lib\quartz.jar;%QUARTZ%\lib\examples.jar
+
+rem Set LOG4J props if you are interested in setting up
+rem a configuraiton file for log4j logging
+rem @SET LOG4J_PROPS="-Dlog4j.configuration=log4j.properties"
+
+"java" -cp "%QUARTZ_CP%" %LOG4J_PROPS% org.quartz.examples.example3.CronTriggerExample

quartz_1x/examples/example3/example3.sh

+#!/bin/sh
+
+# You May Need To Change this to your Quartz installation root
+QUARTZ=../..
+
+# Change this to your JDK installation root
+#
+#JAVA_HOME=/usr/java/j2sdk1.4.0_01
+
+JRE=$JAVA_HOME/jre
+JAVA=$JRE/bin/java
+
+QUARTZ_CP=""
+for jarfile in $QUARTZ/lib/*.jar; do
+  QUARTZ_CP=$QUARTZ_CP:$jarfile
+done
+
+echo "Classpath: " $QUARTZ_CP
+
+# Uncomment the following line if you would like to set log4j 
+# logging properties
+#
+#LOGGING_PROPS="-Dlog4j.configuration=log4j.properties"
+
+$JAVA -classpath $QUARTZ_CP $LOGGING_PROPS org.quartz.examples.example3.CronTriggerExample
+

quartz_1x/examples/example3/readme.txt

+Example 3
+=========
+
+Overview:
+=========
+This example will demonstrate how to use Cron Triggers.
+
+
+Running the Example:
+====================
+1. Windows users - Modify the example3.bat file (if necessary) 
+to set your JAVA_HOME.  Run example3.bat
+
+2. UNIX/Linux users - Modify the example3.sh file (if necessary)
+to set your JAVA_HOME.  Execute example3.sh
+
+
+Configuration Files:
+====================
+1.  You can decide to specify a log4j.properties file to
+control logging output (optional)

quartz_1x/examples/example4/example4.bat

+@echo off
+
+rem Set Quartz to the base directory of the Quartz Distribution
+@SET QUARTZ=..\..
+
+rem !!!!!!! Please read important information. !!!!!!
+rem If "java" is not in your path, please set the path 
+rem for Java 2 Runtime Environment in the path variable below
+rem for example :
+rem @SET PATH=D:\jdk1.3.1;%PATH%
+rem 
+
+@SET QUARTZ_CP=%QUARTZ%\lib\commons-collections.jar;%QUARTZ%\lib\commons-logging.jar;%QUARTZ%\lib\commons-dbcp-1.1.jar;%QUARTZ%\lib\commons-pool-1.1.jar;%QUARTZ%\lib\log4j-1.2.8.djar;%QUARTZ%\lib\jdbc2_0-stdext.jar;%QUARTZ%\lib\quartz.jar;%QUARTZ%\lib\examples.jar
+
+rem Set LOG4J props if you are interested in setting up
+rem a configuraiton file for log4j logging
+rem @SET LOG4J_PROPS="-Dlog4j.configuration=log4j.properties"
+
+"java" -cp "%QUARTZ_CP%" %LOG4J_PROPS% org.quartz.examples.example4.JobStateExample

quartz_1x/examples/example4/example4.sh

+#!/bin/sh
+
+# You May Need To Change this to your Quartz installation root
+QUARTZ=../..
+
+# Change this to your JDK installation root
+#
+#JAVA_HOME=/usr/java/j2sdk1.4.0_01
+
+JRE=$JAVA_HOME/jre
+JAVA=$JRE/bin/java
+
+QUARTZ_CP=""
+for jarfile in $QUARTZ/lib/*.jar; do
+  QUARTZ_CP=$QUARTZ_CP:$jarfile
+done
+
+echo "Classpath: " $QUARTZ_CP
+
+# Uncomment the following line if you would like to set log4j 
+# logging properties
+#
+#LOGGING_PROPS="-Dlog4j.configuration=log4j.properties"
+
+$JAVA -classpath $QUARTZ_CP $LOGGING_PROPS org.quartz.examples.example4.JobStateExample
+

quartz_1x/examples/example4/readme.txt

+Example 4
+=========
+
+Overview:
+=========
+This example will demonstrate how job state can be maintained
+and how parameters can be passed into jobs.
+
+
+Running the Example:
+====================
+1. Windows users - Modify the example4.bat file (if necessary) 
+to set your JAVA_HOME.  Run example4.bat
+
+2. UNIX/Linux users - Modify the example4.sh file (if necessary)
+to set your JAVA_HOME.  Execute example4.sh
+
+
+Configuration Files:
+====================
+1.  You can decide to specify a log4j.properties file to
+control logging output (optional)

quartz_1x/examples/example5/example5.bat

+@echo off
+
+rem Set Quartz to the base directory of the Quartz Distribution
+@SET QUARTZ=..\..
+
+rem !!!!!!! Please read important information. !!!!!!
+rem If "java" is not in your path, please set the path 
+rem for Java 2 Runtime Environment in the path variable below
+rem for example :
+rem @SET PATH=D:\jdk1.3.1;%PATH%
+rem 
+
+@SET QUARTZ_CP=%QUARTZ%\lib\commons-collections.jar;%QUARTZ%\lib\commons-logging.jar;%QUARTZ%\lib\commons-dbcp-1.1.jar;%QUARTZ%\lib\commons-pool-1.1.jar;%QUARTZ%\lib\log4j-1.2.8.djar;%QUARTZ%\lib\jdbc2_0-stdext.jar;%QUARTZ%\lib\quartz.jar;%QUARTZ%\lib\examples.jar
+
+rem Set LOG4J props if you are interested in setting up
+rem a configuraiton file for log4j logging
+rem @SET LOG4J_PROPS="-Dlog4j.configuration=log4j.properties"
+
+"java" -cp "%QUARTZ_CP%" %LOG4J_PROPS% org.quartz.examples.example5.MisfireExample

quartz_1x/examples/example5/example5.sh

+#!/bin/sh
+
+# You May Need To Change this to your Quartz installation root
+QUARTZ=../..
+
+# Change this to your JDK installation root
+#
+#JAVA_HOME=/usr/java/j2sdk1.4.0_01
+
+JRE=$JAVA_HOME/jre
+JAVA=$JRE/bin/java
+
+QUARTZ_CP=""
+for jarfile in $QUARTZ/lib/*.jar; do
+  QUARTZ_CP=$QUARTZ_CP:$jarfile
+done
+
+echo "Classpath: " $QUARTZ_CP
+
+# Uncomment the following line if you would like to set log4j 
+# logging properties
+#
+#LOGGING_PROPS="-Dlog4j.configuration=log4j.properties"
+
+$JAVA -classpath $QUARTZ_CP $LOGGING_PROPS org.quartz.examples.example5.MisfireExample
+

quartz_1x/examples/example5/readme.txt

+Example 5
+=========
+
+Overview:
+=========
+This example will demonstrate how job misfires work.
+
+
+Running the Example:
+====================
+1. Windows users - Modify the example5.bat file (if necessary) 
+to set your JAVA_HOME.  Run example5.bat
+
+2. UNIX/Linux users - Modify the example5.sh file (if necessary)
+to set your JAVA_HOME.  Execute example5.sh
+
+
+Configuration Files:
+====================
+1.  You can decide to specify a log4j.properties file to
+control logging output (optional)

quartz_1x/examples/example6/example6.bat

+@echo off
+
+rem Set Quartz to the base directory of the Quartz Distribution
+@SET QUARTZ=..\..
+
+rem !!!!!!! Please read important information. !!!!!!
+rem If "java" is not in your path, please set the path 
+rem for Java 2 Runtime Environment in the path variable below
+rem for example :
+rem @SET PATH=D:\jdk1.3.1;%PATH%
+rem 
+
+@SET QUARTZ_CP=%QUARTZ%\lib\commons-collections.jar;%QUARTZ%\lib\commons-logging.jar;%QUARTZ%\lib\commons-dbcp-1.1.jar;%QUARTZ%\lib\commons-pool-1.1.jar;%QUARTZ%\lib\log4j-1.2.8.djar;%QUARTZ%\lib\jdbc2_0-stdext.jar;%QUARTZ%\lib\quartz.jar;%QUARTZ%\lib\examples.jar
+
+rem Set LOG4J props if you are interested in setting up
+rem a configuraiton file for log4j logging
+rem @SET LOG4J_PROPS="-Dlog4j.configuration=log4j.properties"
+
+"java" -cp "%QUARTZ_CP%" %LOG4J_PROPS% org.quartz.examples.example6.JobExceptionExample

quartz_1x/examples/example6/example6.sh

+#!/bin/sh
+
+# You May Need To Change this to your Quartz installation root
+QUARTZ=../..
+
+# Change this to your JDK installation root
+#
+#JAVA_HOME=/usr/java/j2sdk1.4.0_01
+
+JRE=$JAVA_HOME/jre
+JAVA=$JRE/bin/java
+
+QUARTZ_CP=""
+for jarfile in $QUARTZ/lib/*.jar; do
+  QUARTZ_CP=$QUARTZ_CP:$jarfile
+done
+
+echo "Classpath: " $QUARTZ_CP
+
+# Uncomment the following line if you would like to set log4j 
+# logging properties
+#
+#LOGGING_PROPS="-Dlog4j.configuration=log4j.properties"
+
+$JAVA -classpath $QUARTZ_CP $LOGGING_PROPS org.quartz.examples.example6.JobExceptionExample
+

quartz_1x/examples/example6/readme.txt

+Example 6
+=========
+
+Overview:
+=========
+This example will demonstrate how job exceptions work.
+
+
+Running the Example:
+====================
+1. Windows users - Modify the example6.bat file (if necessary) 
+to set your JAVA_HOME.  Run example6.bat
+
+2. UNIX/Linux users - Modify the example6.sh file (if necessary)
+to set your JAVA_HOME.  Execute example6.sh
+
+
+Configuration Files:
+====================
+1.  You can decide to specify a log4j.properties file to
+control logging output (optional)

quartz_1x/examples/example7/example7.bat

+@echo off
+
+rem Set Quartz to the base directory of the Quartz Distribution
+@SET QUARTZ=..\..
+
+rem !!!!!!! Please read important information. !!!!!!
+rem If "java" is not in your path, please set the path 
+rem for Java 2 Runtime Environment in the path variable below
+rem for example :
+rem @SET PATH=D:\jdk1.3.1;%PATH%
+rem 
+
+@SET QUARTZ_CP=%QUARTZ%\lib\commons-collections.jar;%QUARTZ%\lib\commons-logging.jar;%QUARTZ%\lib\commons-dbcp-1.1.jar;%QUARTZ%\lib\commons-pool-1.1.jar;%QUARTZ%\lib\log4j-1.2.8.djar;%QUARTZ%\lib\jdbc2_0-stdext.jar;%QUARTZ%\lib\quartz.jar;%QUARTZ%\lib\examples.jar
+
+rem Set LOG4J props if you are interested in setting up
+rem a configuraiton file for log4j logging
+rem @SET LOG4J_PROPS="-Dlog4j.configuration=log4j.properties"
+
+"java" -cp "%QUARTZ_CP%" %LOG4J_PROPS% org.quartz.examples.example7.InterruptExample

quartz_1x/examples/example7/example7.sh

+#!/bin/sh
+
+# You May Need To Change this to your Quartz installation root
+QUARTZ=../..
+
+# Change this to your JDK installation root
+#
+#JAVA_HOME=/usr/java/j2sdk1.4.0_01
+
+JRE=$JAVA_HOME/jre
+JAVA=$JRE/bin/java
+
+QUARTZ_CP=""
+for jarfile in $QUARTZ/lib/*.jar; do
+  QUARTZ_CP=$QUARTZ_CP:$jarfile
+done
+
+echo "Classpath: " $QUARTZ_CP
+
+# Uncomment the following line if you would like to set log4j 
+# logging properties
+#
+#LOGGING_PROPS="-Dlog4j.configuration=log4j.properties"
+
+$JAVA -classpath $QUARTZ_CP $LOGGING_PROPS org.quartz.examples.example7.InterruptExample
+

quartz_1x/examples/example7/readme.txt

+Example 7
+=========
+
+Overview:
+=========
+This example will demonstrate how the scheduler can interrupt
+jobs running in Quartz.
+
+
+Running the Example:
+====================
+1. Windows users - Modify the example7.bat file (if necessary) 
+to set your JAVA_HOME.  Run example7.bat
+
+2. UNIX/Linux users - Modify the example7.sh file (if necessary)
+to set your JAVA_HOME.  Execute example7.sh
+
+
+Configuration Files:
+====================
+1.  You can decide to specify a log4j.properties file to
+control logging output (optional)

quartz_1x/examples/example8/example8.bat

+@echo off
+
+rem Set Quartz to the base directory of the Quartz Distribution
+@SET QUARTZ=..\..
+
+rem !!!!!!! Please read important information. !!!!!!
+rem If "java" is not in your path, please set the path 
+rem for Java 2 Runtime Environment in the path variable below
+rem for example :
+rem @SET PATH=D:\jdk1.3.1;%PATH%
+rem 
+
+@SET QUARTZ_CP=%QUARTZ%\lib\commons-collections.jar;%QUARTZ%\lib\commons-logging.jar;%QUARTZ%\lib\commons-dbcp-1.1.jar;%QUARTZ%\lib\commons-pool-1.1.jar;%QUARTZ%\lib\log4j-1.2.8.djar;%QUARTZ%\lib\jdbc2_0-stdext.jar;%QUARTZ%\lib\quartz.jar;%QUARTZ%\lib\examples.jar
+
+rem Set LOG4J props if you are interested in setting up
+rem a configuraiton file for log4j logging
+rem @SET LOG4J_PROPS="-Dlog4j.configuration=log4j.properties"
+
+"java" -cp "%QUARTZ_CP%" %LOG4J_PROPS% org.quartz.examples.example8.CalendarExample

quartz_1x/examples/example8/example8.sh

+#!/bin/sh
+
+# You May Need To Change this to your Quartz installation root
+QUARTZ=../..
+
+# Change this to your JDK installation root
+#
+#JAVA_HOME=/usr/java/j2sdk1.4.0_01
+
+JRE=$JAVA_HOME/jre
+JAVA=$JRE/bin/java
+
+QUARTZ_CP=""
+for jarfile in $QUARTZ/lib/*.jar; do
+  QUARTZ_CP=$QUARTZ_CP:$jarfile
+done
+
+echo "Classpath: " $QUARTZ_CP
+
+# Uncomment the following line if you would like to set log4j 
+# logging properties
+#
+#LOGGING_PROPS="-Dlog4j.configuration=log4j.properties"
+
+$JAVA -classpath $QUARTZ_CP $LOGGING_PROPS org.quartz.examples.example8.CalendarExample
+

quartz_1x/examples/example8/readme.txt

+Example 8
+=========
+
+Overview:
+=========
+This example will demonstrate how to use Calendars in Quartz.
+
+
+Running the Example:
+====================
+1. Windows users - Modify the example8.bat file (if necessary) 
+to set your JAVA_HOME.  Run example8.bat
+
+2. UNIX/Linux users - Modify the example8.sh file (if necessary)
+to set your JAVA_HOME.  Execute example8.sh
+
+
+Configuration Files:
+====================
+1.  You can decide to specify a log4j.properties file to
+control logging output (optional)

quartz_1x/examples/example9/example9.bat

+@echo off
+
+rem Set Quartz to the base directory of the Quartz Distribution
+@SET QUARTZ=..\..
+
+rem !!!!!!! Please read important information. !!!!!!
+rem If "java" is not in your path, please set the path 
+rem for Java 2 Runtime Environment in the path variable below
+rem for example :
+rem @SET PATH=D:\jdk1.3.1;%PATH%
+rem 
+
+@SET QUARTZ_CP=%QUARTZ%\lib\commons-collections.jar;%QUARTZ%\lib\commons-logging.jar;%QUARTZ%\lib\commons-dbcp-1.1.jar;%QUARTZ%\lib\commons-pool-1.1.jar;%QUARTZ%\lib\log4j-1.2.8.djar;%QUARTZ%\lib\jdbc2_0-stdext.jar;%QUARTZ%\lib\quartz.jar;%QUARTZ%\lib\examples.jar
+
+rem Set LOG4J props if you are interested in setting up
+rem a configuraiton file for log4j logging
+rem @SET LOG4J_PROPS="-Dlog4j.configuration=log4j.properties"
+
+"java" -cp "%QUARTZ_CP%" %LOG4J_PROPS% org.quartz.examples.example9.ListenerExample

quartz_1x/examples/example9/example9.sh

+#!/bin/sh
+
+# You May Need To Change this to your Quartz installation root
+QUARTZ=../..
+
+# Change this to your JDK installation root
+#
+#JAVA_HOME=/usr/java/j2sdk1.4.0_01
+
+JRE=$JAVA_HOME/jre
+JAVA=$JRE/bin/java
+
+QUARTZ_CP=""
+for jarfile in $QUARTZ/lib/*.jar; do
+  QUARTZ_CP=$QUARTZ_CP:$jarfile
+done
+
+echo "Classpath: " $QUARTZ_CP
+
+# Uncomment the following line if you would like to set log4j 
+# logging properties
+#
+#LOGGING_PROPS="-Dlog4j.configuration=log4j.properties"
+
+$JAVA -classpath $QUARTZ_CP $LOGGING_PROPS org.quartz.examples.example9.ListenerExample
+

quartz_1x/examples/example9/readme.txt

+Example 9
+=========
+
+Overview:
+=========
+This example demonstrates how to use Job Listeners in
+Quartz to have the completion of one job trigger another job.
+
+
+Running the Example:
+====================
+1. Windows users - Modify the example9.bat file (if necessary) 
+to set your JAVA_HOME.  Run example9.bat
+
+2. UNIX/Linux users - Modify the example9.sh file (if necessary)
+to set your JAVA_HOME.  Execute example9.sh
+
+
+Configuration Files:
+====================
+1.  You can decide to specify a log4j.properties file to
+control logging output (optional)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.