Community

TimerService configuration with ejb-jar.xml

created by Slava Schmidt in EJB 3.0 - View the full discussion

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

Start a new discussion in EJB 3.0 at Community