File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Quartz triggers is firing only once in tomcat setup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Quartz triggers is firing only once in tomcat setup" Watch "Quartz triggers is firing only once in tomcat setup" New topic
Author

Quartz triggers is firing only once in tomcat setup

Karthik krishnamurthy
Greenhorn

Joined: Sep 15, 2006
Posts: 6
Hi,

I have my quartz scheduler running under tomcat. All I need to do is schedule a job that will run for every 5 mins. Now, whenever I schedule a job, it fires at the moment it got scheduled (which is correct). After that I see the "trigger_fired" count along with the trigger_next_fire_time columns in oracle db getting increased but none of the trigger listener and job listener log messages are getting printed which was getting printed when the job got fired for the first time.

Please help me with this.

My configuration details:

<servlet>
<servlet-name>QuartzInitializer</servlet-name>
<servlet-class>org.quartz.ee.servlet.QuartzInitializerServlet</servlet-class>
<init-param>
<param-name>config-file</param-name>
<param-value>${catalina.home}/shared/classes/quartz.properties</param-value>
</init-param>
<init-param>
<param-name>shutdown-on-unload</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>start-scheduler-on-load</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
----------------------------------------------------------------------------------------------------------------------------------

quartz.properties
-----------------------------

org.quartz.scheduler.instanceName = DefaultQuartzScheduler
org.quartz.scheduler.rmi.export = false
org.quartz.scheduler.rmi.proxy = false
org.quartz.scheduler.wrapJobExecutionInUserTransaction = false

org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 10
org.quartz.threadPool.threadPriority = 5
org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread = true

org.quartz.jobStore.misfireThreshold = 60000

org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.oracle.OracleDelegate
org.quartz.jobStore.dataSource = myDS
org.quartz.jobStore.tablePrefix = QRTZ_

#
# Configure Datasources
#

org.quartz.dataSource.myDS.driver = oracle.jdbc.driver.OracleDriver
org.quartz.dataSource.myDS.URL = jdbcracle:thin:MY_USER/MY_PASS@10.76.85.89:1521:SID1
org.quartz.dataSource.myDS.user = MY_USER
org.quartz.dataSource.myDS.password = MY_PASS
org.quartz.dataSource.myDS.maxConnections = 5
 
 
subject: Quartz triggers is firing only once in tomcat setup
 
Similar Threads
configuring Quartz scheduler in tomcat 6 using JNDI
JSF 1.1 and Tomcat 6
Quartz Sheduler not executing
Exception using Quartz org.quartz.plugins.xml.JobInitializationPlugin
servlet-mapping