Raj Sharma
Raj Sharma

Reputation: 61

How can I disable the EJB Timer in Wildfly 8?

I have 2 instances running independently and using the same database. I want to run the timer on one instance and disable on another instance. What should i do to achieve?

Upvotes: 0

Views: 548

Answers (1)

Tomas Milata
Tomas Milata

Reputation: 76

I have also tried to configure my batch to run only on one instance. Unfortunately, I am not aware of a way to explicitely disable the batch on certain nodes.

But as shi suggests, it is possible to keep you batch processes on all instances and synchronize them via DB which has e.g. the failover advantage. However, for EJB timer this is available only in Widfly 9 (see the issue).

I solved it by using Quartz Scheduler in clustered configuration which uses an approach very similar to the clustered EJB timers.

Upvotes: 1

Related Questions