[jboss-user] [EJB 3.0] - how to deploy a service pojo depending on ejb timer

Maria Luisa Della Vedova do-not-reply at jboss.com
Wed Jun 30 06:21:56 EDT 2010


Maria Luisa Della Vedova [http://community.jboss.org/people/mldv] replied to the discussion

"how to deploy a service pojo depending on ejb timer"

To view the discussion, visit: http://community.jboss.org/message/550357#550357

--------------------------------------------------------------
on line 39 there is a call to the ejb method for the creation of the timer (ctx.getTimerService().createTimer)

with the lookup of the EJB the same code give me no problem.

@Service
@Local(MyInterfaceService.*class*)
@Depends("jboss.j2ee:ear=earname.ear,jar=jarname.jar,name=TheTimerBean,service=EB3")
*public* *class* MyService *implements* MyInterfaceService {
@EJB
*private* ITimer myEJBTimer;

@Override
*public* *void* create() *throws* Exception {
line 39           myEJBTimer.attiva();
      }

}

thanks

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/550357#550357]

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/20100630/1fd5cf4a/attachment.html 


More information about the jboss-user mailing list