wood burning stoves 2.0
The moose likes JBoss/WildFly and the fly likes Spring Quartz JBoss High Availability with Failover Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Spring Quartz JBoss High Availability with Failover" Watch "Spring Quartz JBoss High Availability with Failover" New topic

Spring Quartz JBoss High Availability with Failover

Niall Loughnane
Ranch Hand

Joined: Dec 07, 2006
Posts: 208

I have a Spring application that uses Quartz scheduler,

If i want to deploy this into JBoss with a high availability clustering are there any recommended ways to do this or any tutorials on this?


Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

The two are unrelated.

There isn't anything special you have to do in your Spring application.

As far as your Quartz job within JBoss, then that is a JBoss question. But if you deploy your app in three JBoss servers set up in a cluster. Do you want your job running three times or just once. If just once then your Quartz service on JBoss should be put in the HA-singleton directory, so it only runs once, but if that server crashes the service is moved to one of the other machines.

Going to move this to the JBoss forum


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

You need to use the database driven triggers and jobs.

In this way if one node fires the job, the others will not. If a node becomes offline, the job(s) should still get fired by one of the others.

I agree. Here's the link: http://aspose.com/file-tools
subject: Spring Quartz JBoss High Availability with Failover
It's not a secret anymore!