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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...