mercredi 17 octobre 2012

Quartz clustering not working with Websphere Application Server

Hi, 
I am using quartz for my application which is deployed on Webspher Application Server (not clustered form) and using org.quartz.impl.jdbcjobstore.JobStoreTX to store the job and which is working fine. 

Now I have to cluster the quartz with JobStoreTX. 

I am following the information provided at the link 
http://www.quartz-scheduler.org/docs/configuration/ConfigJDBCJobStoreClustering.html 
to set up the clustered configuration. 

I have two instance of the Webshere Application server running (Nod 1 and Node 2), and I am deploying the application into it, my quartz file also deployed along with the application into Node 1 and Node 2. 

But while quartz trigger the job, it trigger the same job on both the Nodes (Node 1 & Node 2), but as per the link 

http://www.quartz-scheduler.org/docs/configuration/ConfigJDBCJobStoreClustering.html 
only one node is supposed to trigger the job. My quartz.properties are given below. 

org.quartz.scheduler.instanceName = master_scheduler 
org.quartz.scheduler.instanceId = AUTO 
org.quartz.scheduler.rmi.export = false 
org.quartz.scheduler.rmi.proxy = false 

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.impl.jdbcjobstore.JobStoreTX 
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate 
org.quartz.jobStore.useProperties = true 
org.quartz.jobStore.dataSource = myDS 
org.quartz.jobStore.tablePrefix = QUARTZ 
org.quartz.jobStore.isClustered = true 

org.quartz.dataSource.ccpDS.driver = COM.ibm.db2.jdbc.app.DB2Driver 
org.quartz.dataSource.ccpDS.URL = jdbc:db2:mySchema 
org.quartz.dataSource.ccpDS.user = user 
org.quartz.dataSource.ccpDS.password = password 
org.quartz.dataSource.ccpDS.maxConnections = 5

Aucun commentaire:

Enregistrer un commentaire