This content has been marked as final.
Show 4 replies
-
1. Re: JBoss Mbean Dependencies - How to start scheduler servic
whooi Jul 11, 2006 12:29 AM (in response to whooi)Opps sorry, heres the service.xml
<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> </mbean> </server>
-
2. Re: JBoss Mbean Dependencies - How to start scheduler servic
yantriki Jul 14, 2006 10:01 AM (in response to whooi)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 -
3. Re: JBoss Mbean Dependencies - How to start scheduler servic
jsimone Jul 31, 2006 4:07 PM (in response to whooi)What is the format of depends tag?
....
to make this work?
I have tried endless variations using just the ear file name, EARDeployer service, EARDeployment service etc. Can't seem to make it work.
Thanks,
Joe -
4. Re: JBoss Mbean Dependencies - How to start scheduler servic
viy Aug 4, 2006 4:54 AM (in response to whooi)Try to use jboss.j2ee:service=EARDeployment,url='EAR_FILE_NAME'