Answer the question
In order to leave comments, you need to log in
How does singleton locking work on a cluster?
There is this thing:
@Singleton
public class RecoveryWorker {
@Schedule(minute = "*/1", hour = "*", persistent = false)
public void run() {
// тут происходят тяжелые запросы к базе ~ 2c
...
}
...
}
ERROR [org.jboss.as.ejb3] (EJB default - 10) JBAS014120: Error invoking timeout for timer: [id=66ed65c4-3a2d-4343-870d-5f7a46a7742c timedObjectId=com.package.Worker auto-timer?:true persistent ?:false [email protected]950e6 initialExpiration=null intervalDuration(in milli sec)=0 nextExpiration=Wed Jun 15 00:01:00 CEST 2016 timerState=IN_TIMEOUT info=null: javax. ejb.ConcurrentAccessTimeoutException: JBAS014373: EJB 3.1 PFD2 4.8.5.5.1 concurrent access timeout on [email protected] - could not obtain lock within 5000MILLISECONDS
Answer the question
In order to leave comments, you need to log in
How is the problem solved when you need to have Singleton on multiple servers?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question