This sounds like an interesting solution. A question, though: Are there any plans to 
implement a way to define an mbean as being in a master/slave configuration from a 
-service.xml descriptor? Not that I'm asking you to implement it, but wanted to see if 
this is something the JBoss team has had requests for in the past and may be planning 
to implement. One of your "foes" supports mbeans at a domain level rather than a 
server level when in a clustered situtation (actual implemention success is unknown at 
this time, but the docs say so), so I was thinking something similar would be a nice 
jboss-specific feature as well. 

Also, does any part of Jboss use this approach already, or all deployed services 
assumed to be needed on all cluster nodes? 

Thanks,
James

> -----Original Message-----
> From: Sacha Labourey [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, October 03, 2002 11:17 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] Clustering and MBean Failover Question
> 
> 
> 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/j> boss-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