2 Replies Latest reply on Jul 24, 2006 10:09 AM by Carlo de Wolf

    TimerService Injection Failure


      Added a timer service to an Entity bean but when calling rotate() I get a null pointer exception. The container failed to inject a TimerService for me.

      @Entity public class Planet implements Serializable
       @Resource TimerService timerService;
       public rotate()
       timerService.createTimer(60000, "minute timer"); // NFG: timerService not initialized