[jboss-user] [Beginners Corner] - Re: Schedular MBean & Injection
do-not-reply at jboss.com
Wed Oct 1 12:17:53 EDT 2008
"PeterJ" wrote : 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.
Hi Peter. Thanks for the response. The strange thing is the application server can be completely started and it still fails (for example setting the SchedulePeriod to 10000 will launch the method after it's completely started) It still works from the console however. It's almost as it's being launched from outside of the servers context or something?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179866#4179866
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179866
More information about the jboss-user