Skip to main content

Adam Bien: Simplest Possible EJB 3.1 Timer

Adam Bien provides code and explanation for the Simplest Possible EJB 3.1 Timer:

A timer doesn't have to be a singleton - it can be a @Stateless and even a @Stateful bean. The method doWork() will be invoked every second. There is no registration or configuration needed...

Community: Java Enterprise