[jboss-user] [EJB3] - EJB3 TimerService on JBoss6 final

elico.a do-not-reply at jboss.com
Mon Aug 15 09:18:36 EDT 2011

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


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:

public class MyClassImpl implements MyClassLocal
    private TimerService timerService;

    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.


Reply to this message by going to Community

Start a new discussion in EJB3 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110815/d902fa14/attachment.html 

More information about the jboss-user mailing list