[jboss-user] [Clustering/JBoss] - Re: Only one scheduler across all nodes in the cluster
tpawankumar
do-not-reply at jboss.com
Thu Apr 3 09:07:35 EDT 2008
Hi All,
I am using scheduler in clustered environment.
Following is jboss-service.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <server>
| <mbean code="org.jboss.varia.scheduler.Scheduler"
| name="com.covad:service=Scheduler">
| <depends>jboss.ha:service=HASingletonDeployer,type=Barrier</depends>
| <attribute name="StartAtStartup">true</attribute>
| <attribute name="SchedulableClass">com.covad.scheduler.HearBeatScheduler</attribute>
| <attribute name="InitialStartDate">NOW</attribute>
| <attribute name="SchedulePeriod">60000</attribute>
| <attribute name="InitialRepetitions">-1</attribute>
| </mbean>
| </server>
|
I have configured two nodes on two different machines.
This HeartBeatScheduler class publishes messages on the JMS topic.
I want only one node to publish the message.But both nodes are publishing the messages.
I am using Jboss 4.2.1 GA and i am deploying the same .sar in both the machines.
Please suggest me where i am going wrong.
Thanks,
Pavan.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141319#4141319
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141319
More information about the jboss-user
mailing list