[jboss-user] [Beginners Corner] - Re: Schedular MBean & Injection

PeterJ do-not-reply at jboss.com
Wed Oct 1 11:16:33 EDT 2008

Services are started before EJBs, therefore the EJB is probably not ready at the time the code is run. You need to add a depends tag that references the BMean generated for the EJB. Something like this:

<mbean ...>
  | <depends>jboss.j2ee:ear=xxx.ear,jar=xxx.jar,name=MyEjb,service=EJB3</depends>
  | </mbean>

You can use the jmx console to look up the name for your ejb's mbean.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179842#4179842

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179842

More information about the jboss-user mailing list