aspose file tools
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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 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: 17260

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 - Two Laptop Bag - Tube Organizer
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.

It is sorta covered in the JavaRanch Style Guide.
subject: Spring Quartz JBoss High Availability with Failover