elico.a [http://community.jboss.org/people/elico.a] created the discussion
"EJB3 TimerService on JBoss6 final" To view the discussion, visit: http://community.jboss.org/message/621022#621022 -------------------------------------------------------------- Hi, I am upgrading from JBoss 4.2.2 to JBoss6_Final and have some unresolved issues that I would appreciate your help. I have an EJB3 that uses TimerService: @Startup @Singleton public class MyClassImpl implements MyClassLocal { @Resource private TimerService timerService; @PostConstruct public void initService() { long timeTillNextRun = getTimeTillNextRun(); timerService.createTimer( timeTillNextRun, 1000*60*60, null ); } } The problem that the line timerService.createTimer( timeTillNextRun, 1000*60*60, null ); throws NullPointerException, as if the injection didn't work. Do you might have any idea what goes wrong? Thanks in advance. Eli. -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/621022#621022] Start a new discussion in EJB3 at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
