I have created an EJB Timer like this:
@Stateless
public class MyTimerService {
@Schedule(second="*/10", minute="*", hour="*", dayOfMonth="*", persistent=false)
public void process() {
logger.info("Start processing")
}
}
and I am deploying it on Websphere 8.5. As I know, WAS 8.5 implements the Java EE 6 specification, so it should work, however it does not. It looks like the server does not start the timer at application start up. What am I doing wrong?
UPDATE: I also annotated MyTimerService with @Startup + @Singleton, the bean is started when the application starts but the timer does not start either.