[jboss-user] [EJB 3.0] - TimerService configuration with ejb-jar.xml
Slava Schmidt
do-not-reply at jboss.com
Wed May 12 07:52:36 EDT 2010
Slava Schmidt [http://community.jboss.org/people/slava_schmidt] created the discussion
"TimerService configuration with ejb-jar.xml"
To view the discussion, visit: http://community.jboss.org/message/542560#542560
--------------------------------------------------------------
Hello,
could anyone help me to figure out, how to configure the TimerService in EJB3 using ejb-jar.xml?
Now i use following annotation:
{code}@Resource private TimerService timerService{code}
and it works just fine. But i need to replace all annotations with an xml configuration. So i have tried this (in nearly all possible combinations):
{code:xml}
<resource-ref>
<res-ref-name>EJBTimerService</res-ref-name>
<res-type>javax.ejb.TimerService</res-type>
<mapped-name>EJBTimerService</mapped-name>
<injection-target>
<injection-target-class>com.gkses.muc.master.beans.AbstractTimerControl</injection-target-class>
<injection-target-name>timerService</injection-target-name>
</injection-target>
</resource-ref>
{code:xml}
Naturally, this is wrong. I would very appreciate any help!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/542560#542560]
Start a new discussion in EJB 3.0 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/20100512/db16c014/attachment-0001.html
More information about the jboss-user
mailing list