why not create a second mbean, which would be jboss specific, doing all the
clustering registration. When it detects it is the master, it simply send a
JMX notification (or any invocation) to the non-jboss specific MBean saying
"You are the master". If you then need to port this to another environment,
you have one safe mbean and one non-portable mbean: at least they are split.

You can do that with any helper class aswell, it doesn't need to be an mbean

> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de McKnight,
> David
> Envoy� : jeudi, 3 octobre 2002 17:31
> � : '[EMAIL PROTECTED]'
> Objet : RE: [JBoss-user] Clustering and MBean Failover Question
>
>
> Sacha,
>
> First off, thanks to you, Marc, Scott, and everyone else there for such a
> cool product. We've been putting a very limited subset of features through
> its paces and it is working very well for us. Now, about the
> MBean services
> failover...can you think of *any* way to engineer this without
> having to put
> proprietary code in the MBean? I realize the .sar format is jboss
> specific,
> but was hoping to keep from making any jboss api calls if at all
> possible..
>
> thanks,
> David
>
>
>
>
> >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.
>
>
> -------------------------------------------------------
> 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

Reply via email to