Reputation: 1635
Does Wildfly 8.0.0.Final support clustering for timer service? I would like to run wildfly on multiple instances with shared database. Only one instance should be able to run job annotated with javax.ejb.Schedule
at the same time. According to this documentation it works when you set the same parition name and transaction isolation level to READ_COMMITED
. I have simmilar setup, but all instances start the same job.
Upvotes: 1
Views: 2472
Reputation: 5208
Since JBoss 7, JBoss 7.x and Wildfly 8.x don't have support for cluster timers.
In Wildfly 9 this feature is added:
Alternatively you can use Quartz or implement a Singleton Service.
A SingletonService deployed in a JAR started by SingletonStartup and accessed by an EJB
Upvotes: 2