Hi,
I'm currently migrating to jboss 4.0.4 and have a number of singleton schedulables
which where using the old method in the descriptors. I have added the new
HASingletonDeployer barrier but the never run at all when this element is present! I am
missing something?
<?xml version="1.0" encoding="UTF-8"?> <server>
<classpath codebase="lib" archives="scheduler-plugin.jar"/>
<mbean code="org.jboss.varia.scheduler.Scheduler"
name="eventmanager:service=FrequencyEventScheduler">
<depend>jboss.ha:service=HASingletonDeployer,type=Barrier</depend>
<attribute name="StartAtStartup">true</attribute> <attribute
name="SchedulableClass">com.transtoll.modules.eventmanager.schedulables.jboss.FrequencyEventSchedulable</attribute>
<attribute name="InitialStartDate">NOW</attribute> <attribute
name="InitialRepetitions">-1</attribute> <attribute
name="SchedulePeriod">60000</attribute>
<depends>eventmanager:service=initialisation</depends> </mbean>
<mbean code="org.jboss.varia.scheduler.Scheduler"
name="eventmanager:service=MetricEventScheduler">
<depend>jboss.ha:service=HASingletonDeployer,type=Barrier</depend>
<attribute name="StartAtStartup">true</attribute> <attribute
name="SchedulableClass">com.transtoll.modules.eventmanager.schedulables.jboss.MetricEventSchedulable</attribute>
<attribute name="InitialStartDate">NOW</attribute> <attribute
name="InitialRepetitions">-1</attribute> <attribute
name="SchedulePeriod">60000</attribute>
<depends>eventmanager:service=initialisation</depends> </mbean>
<mbean code="org.jboss.varia.scheduler.Scheduler"
name="eventmanager:service=DurationEventScheduler">
<depend>jboss.ha:service=HASingletonDeployer,type=Barrier</depend>
<attribute name="StartAtStartup">true</attribute> <attribute
name="SchedulableClass">com.transtoll.modules.eventmanager.schedulables.jboss.DurationEventSchedulable</attribute>
<attribute name="InitialStartDate">NOW</attribute> <attribute
name="InitialRepetitions">-1</attribute> <attribute
name="SchedulePeriod">60000</attribute>
<depends>eventmanager:service=initialisation</depends> </mbean>
<mbean code="org.jboss.varia.scheduler.Scheduler"
name="eventmanager:service=MetricPersistenceScheduler">
<depend>jboss.ha:service=HASingletonDeployer,type=Barrier</depend>
<attribute name="StartAtStartup">true</attribute> <attribute
name="SchedulableClass">com.transtoll.modules.eventmanager.schedulables.jboss.MetricPersistenceSchedulable</attribute>
<attribute name="InitialStartDate">NOW</attribute> <attribute
name="InitialRepetitions">-1</attribute> <attribute
name="SchedulePeriod">60000</attribute>
<depends>eventmanager:service=initialisation</depends> </mbean>
</server>
Cheers
Mark
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959703#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...