This content has been marked as final.
Show 2 replies
-
1. Re: Schedule EJB in JBoss Cluster, run in one node
wdfink Feb 11, 2014 12:10 PM (in response to jorsol)You might have a look to the quickstarts [1] or the github repo [2] which might be newer.
The cluster-ha-example show how to achieve such behaviour with timers.
[1] cluster-ha-singleton: A SingletonService deployed in a JAR
-
2. Re: Re: Schedule EJB in JBoss Cluster, run in one node
rhusar Feb 12, 2014 8:45 AM (in response to wdfink)The quickstart is using a SingletonServiceBuilder to create a service that is going to be running only on one node in the cluster. That service takes care of creating the timers only on one node.
For more thorough approach for WildFly 9 (or so) you might want to watch:
[WFLY-283] EJB timers in cluster and failover support - JBoss Issue Tracker