I use web profile and it does not allow to use Java EE @Schedule functionality. So, I have several ways to solve the problem: