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&...]