[jboss-user] [EJB 3.0] - TimerService Injection Failure

treespace do-not-reply at jboss.com
Sat Jul 15 13:02:05 EDT 2006


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
  |     }
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958279#3958279

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958279



More information about the jboss-user mailing list