Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Quartz JBoss High Availability with Failover

 
Niall Loughnane
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic