Look at http://www.cocoonhive.org/articles/jboss/20030610/hasingleton.html
Marcus Redeker wrote:
All,
I am looking for a cluster aware scheduler service. The scenario is that I have two JBoss instances running in a cluster and I have a scheduler service running on one of them since it is fatal if my schedulable object would be invoked twice on both instances. But also I would like to have a failover which means that in case the instance which is running the scheduler service is going down I want another instance in the cluster to take over and activate the scheduler.
Is anything in that direction already available? From looking into the source I did not see anything. If not I would like to implement some kind of HASchedulerMBean. This could work the way that you would deploy your scheduler service with "StartAtStartup = false" and the HASchedulerMBean would invoke the start depending on which server is available in the cluster.
Sacha: Do you have a tip for me where to look in the clustering classes to get a head start?
Thanks,
--Marcus
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development