???? 下載地址:http://www.opensymphony.com/quarz/download.action,quarz現在最新的版本是1.6。
???? 如果需要在web應用中使用Quartz,只需將quartz-1.6.jar or quartz-all-1.6.jar文件復制到WEB-INF的lib目錄下即可。
??? 一. Quarz的配置文件quartz.properties的介紹
??? 將該文件放在Wen應用的src目錄下,使用舉例如下:
??? # 配置主調度屬性?? org.quartz.scheduler.instanceName = QuartzScheduler?? org.quartz.scheduler.instanceId = AUTO?? # 配置線程池???org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
?? # 配置線程池的線程數量?? org.quartz.threadPool.threadCount = 5
?? # 配置線程池里線程的優先級
???org.quartz.threadPool.threadPriority = 5?? #?配置作業存儲?? org.quartz.jobStore.misfireThreshold = 60000?? org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore??? 二.?Quarz中的作業使用舉例
?