Hi,
I know the Timer feature of EJB 3.1 is not implemented yet in JBoss 6.0 M2 but i am just wondering how come the createCalendarTimer(SchedulerExpression) method is not recognized yet.
That method is part of the TimerService interface that comes with EJB 3.1
Is this normal ? Am i missing something ?
import javax.annotation.Resource; import javax.annotation.PostConstruct; import javax.ejb.ScheduleExpression; import javax.ejb.Stateless; import javax.ejb.Timer; import javax.ejb.TimerService; import javax.inject.Inject; import com.eni.dvtejb31.ejb.entitybeans.Contact; @Stateless public class SessionBeanSchedulerExpr { ... @Resource TimerService timerService; @PostConstruct public void init() { ScheduleExpression expr = new ScheduleExpression().dayOfWeek("1,5").hour(10).minute(0);; Timer timer = timerService.createCalendarTimer(expr); // method not recognized during compilation } }
The EJB3.1 API jar that's shipped in 6.0 M2 is not fully complete. It doesn't have the full EJB3.1 API set. 6.0 M3 will have it.