Yes, take a look at the Distributed Replicant Manager (DRM) on top of the
partition. Take a look at the very recent api change.
You simply register your mbean under a given name in this service, and
register for composition change (always in the DRM). Inside the event
handler, you call somthing like DRM.iAmTheMasterNode which will return a
boolean. If true, you are the master of the cluster, if not, you are a
slave. Your mbean doesn't need to be started on all nodes of the cluster:
the DRM can work with subset of a cluster.
Cheers,
Sacha
> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de McKnight,
> David
> Envoy� : mercredi, 2 octobre 2002 19:49
> � : '[EMAIL PROTECTED]'
> Objet : [JBoss-user] Clustering and MBean Failover Question
>
>
> Hopefully, this is the last question from me for awhile...maybe
> soon I'll be
> able to answer some!
>
> I have an app configured as an Mbean, working well. It can be started and
> stopped from the admin interface, etc. Also, I have set up clustering
> between two servers, and they do recognize each other and report
> when a new
> node comes online or dies. The problem is that the MBean is
> running on both
> servers at the same time. However, the way I would like this to
> work is for
> my Mbean to be active on only one node at a time. When that node
> goes down,
> the Mbean on a different node comes up - but only one active at a given
> time. As if the start() method of my Mbean only got called on 1 node. Is
> this possible? Or, will the MBean always start, and I need to
> cluster a bean
> that has been configured to have one and only one active instance? I have
> written FT apps with Tibco Rendezvous before, but this is quite different.
> Thanks for any assistance..
>
> David
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user