EJB-Wildfly: Is it fine to execute multiple EJB Scheduler in Wildfly or should i keep it in separate Class files?

271 views Asked by At

There are 10 scheduler of this type in same Class file:

@Startup
@Singleton
@AccessTimeout(value = 1, unit = TimeUnit.HOURS)
public class MeowPoller {

    @Schedule(hour = "02", minute = "00", persistent = false)
    public void runFetchApplications() {

When some job stuck for say 3 hours then next job does not execute till this job finish.

System keeps on giving:

2020-01-20 01:02:00,001 WARN  [org.jboss.as.ejb3.timer] (EJB default - 6) WFLYEJB0043: A previous execution of 
timer [id=459875b7-5346-40c1-a9a0-f36dec8ef53d timedObjectId=Meow-1.6-SNAPSHOT.Meow-1.6-SNAPSHOT.MeowPoller 
auto-timer?:true persistent?:false timerService=org.jboss.as.ejb3.timerservice.TimerServiceImpl@7ffe6c6a 
initialExpiration=null intervalDuration(in milli sec)=0 nextExpiration=Mon Jan 20 01:02:00 CET 2020 timerState=IN_TIMEOUT 
info=null] is still in progress, skipping this overlapping scheduled execution at: Mon Jan 20 01:02:00 CET 2020.
0

There are 0 answers