* move security content from spring-security-rest-full * swagger update * move query language to new module * rename spring-security-rest-full to spring-rest-full * group persistence modules * group testing modules * try fix conflict * cleanup * group and cleanup
20 lines
396 B
Java
20 lines
396 B
Java
package com.baeldung.timer;
|
|
|
|
import javax.ejb.*;
|
|
|
|
/**
|
|
* Created by ccristianchiovari on 5/2/16.
|
|
*/
|
|
@Singleton
|
|
public class FixedDelayTimerBean {
|
|
|
|
@EJB
|
|
private WorkerBean workerBean;
|
|
|
|
@Lock(LockType.READ)
|
|
@Schedule(second = "*/5", minute = "*", hour = "*", persistent = false)
|
|
public void atSchedule() throws InterruptedException {
|
|
workerBean.doTimerWork();
|
|
}
|
|
|
|
} |