add a depends clause to your jboss-service.xml file:
<server>
| <mbean code="org.jboss.varia.scheduler.Scheduler"
name=":service=Scheduler">
| <attribute name="StartAtStartup">true</attribute>
| <attribute
name="SchedulableClass">com.acme.HelloWorld</attribute>
| <attribute name="InitialStartDate">NOW</attribute>
| <attribute name="SchedulePeriod">5000</attribute>
| <attribute name="InitialRepetitions">-1</attribute>
| <depends>EAR file name*</depends>
| </mbean>
| </server>
|
*
check jmx-console for the name of the ear, or if you want your schedular to depend
explicitly on a Session Bean
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958081#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...