6 Replies Latest reply: May 6, 2012 3:37 AM by Jaime Poch RSS

About @Schedule annotation ...

Jaime Poch Newbie



I'm using JBoss AS 7.0.2 Final


I have implemented a stateless session bean that contains an automatic timer:



public class PeriodicTasks{


    @Schedule(hour = "10", minute = "56")

    public void cumples(Timer timer) {

        System.out.println("helo world!");




Ihave been changing de hour and minute atributtes but it doesn't work.


May I have to do something else?


I'm using JBoss AS 7.0.2 Final