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
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Spring Quartz JBoss High Availability with Failover" Watch "Spring Quartz JBoss High Availability with Failover" New topic
Author

Spring Quartz JBoss High Availability with Failover

Niall Loughnane
Ranch Hand

Joined: Dec 07, 2006
Posts: 208
Hi,

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?

Thanks,

Niall
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17256
    
    6

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

Mark


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.

WP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Quartz JBoss High Availability with Failover