Is there a way to stop/re-start ejb 3.1 automatic timer during runtime?
问题 I'm trying to use a simple automatic EJB schedule/timer. My code goes something like this: @Singleton @Lock(LockType.READ) public class Scheduler { @Schedule(second = "0", minute = "*/20", hour = "*"), private void fetchSomeData() { ... } @Schedule(second = "0", minute = "*/5", hour = "*"), private void cleanThingsUp() { ... } } Is there a way to stop and restart automatic timers during the runtime? Please notice that I don't need to change the timeouts, I only need to stop and start the