I have a Jboss 7 domain with a master server and with 2 other nodes.
I need to run some scheduled jobs on the cluster (one node only) and on failover the Job must be continoued by another up server.
In this forum I saw in this post that it is possible, but I could not find a howto.
I have already created an application which can run Cron jobs, but when I deploy the application, it start to run it on all the nodes, and does not move to another server on failover.
Can anyone help in this?
the code what schedule the task:
I've started it with a listener:
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad:
a bit of art, as a gift, the permaculture playing cards