Managing more than one MBean server through a single JMX Client.

HI All...

I want to connect to more than one MBean servers through a single JMX Client.

To be more particular, I want to invoke a function (exposed to the client for management ) only once, and want all the functions with the same name, belonging to other MBeans, to be invoked...

Can anyone clue me as to how to go about this?

One possibility I thought could be that, one MBean could act as a router to all other MBeans. Thus invoking this MBean's function should invoke all other MBeans' function ( with the same name).

Is such a thing possible? If yes, how do i implement it ? Or is there an alternate solution to this?

Thanks a lot in advance.....

[698 byte] By [arra] at [2007-11-27 0:42:10]
# 1

What you suggest should be workable. You could check out http://weblogs.java.net/blog/emcmanus/archive/2007/02/cascading_its_a.html for some ideas of how to start. For example, you could define "mirror MBeans" in one central MBean Server that act as proxies for MBeans in your various MBean Servers that you want to control. Then you could define a "multioperation MBean" that invokes an operation on each of a number of other MBeans. If these other MBeans are your mirror MBeans, then you'll be able to invoke the operation in several MBean Servers as you want.

emcmanusa at 2007-7-11 22:56:32 > top of Java-index,Core,Monitoring & Management...
# 2
Thank you so much for your suggestion. I ll go through the link. I think your idea should work. :-)
arra at 2007-7-11 22:56:32 > top of Java-index,Core,Monitoring & Management...