[jboss-user] [Management, JMX/JBoss] - Re: Schedulable & jboss-service.xml
rabbiaqaswar
do-not-reply at jboss.com
Mon Apr 21 03:55:50 EDT 2008
Hello
Thanks for your reply. I tried the following:
| <mbean code="org.jboss.varia.scheduler.Scheduler" name=":service=Scheduler">
| <attribute name="StartAtStartup">true</attribute>
| <attribute name="SchedulableClass">org.schedular.MySchedular</attribute>
| <attribute name="SchedulableArguments">TheName,123456789</attribute>
| <attribute name="SchedulableArgumentTypes">java.lang.String,long</attribute>
| <attribute name="InitialStartDate">NOW</attribute>
| <attribute name="SchedulePeriod">1000</attribute>
| <attribute name="InitialRepetitions">5</attribute>
| <attribute name="FixedRate">true</attribute>
| <depends>
| <mbean code="javax.management.timer.Timer" name="jboss:service=Timer"/>
| </depends>
| <depends>jboss.j2ee:module=SchedularProject-ejb.jar,service=EjbModule</depends>
| </mbean>
Now the scenario is:
1. Start JBoss after making the above changes in scheduler-service.xml and start JBoss, it will give the same error.
2. Deploy the jar file, the deployment will be successfull but the Scheduler is not invoked.
3. Stop JBoss and start it again, the error will not come and the Scheduler works.
How can I avoid the error in the first case i.e. when JBoss is started for the first time?
Many Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145388#4145388
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145388
More information about the jboss-user
mailing list