[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
--------------------------------------------------------------
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]
-------------- 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