federating mbeans servers

View: New views
2 Messages — Rating Filter:   Alert me  

federating mbeans servers

by luca-30 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've to manage some mBeans in few mBeanServers. At the moment I'm managing them via remote connection and query on remote mbean servers, but I'd like to try mbean servers federating.
I've two doubts:
- How is possible to have a dynamic mirror of my managed Mbeans?...e.g. I connect with mBean servers once, and I'd be notified when an mbean register/deregister;
- What happen when jmx connection shut down?

thanks
luke



--

"I have discovered a truly remarkable proof which this margin is too small to contain"

Pierre de Fermat, ca 1635.
-------------------------------------------------------- =========================================================================== The JDMK-FORUM archives are accessible at http://archives.java.sun.com To unsubscribe, send email to listserv@... and include in the body of the message "signoff JDMK-FORUM". For general help, send email to listserv@... and include in the body of the message "help".


Re: federating mbeans servers

by daniel.fuchs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Luke,

luc wrote:
> I've to manage some mBeans in few mBeanServers. At the moment I'm
> managing them via remote connection and query on remote mbean servers,
> but I'd like to try mbean servers federating.
> I've two doubts:
> - How is possible to have a dynamic mirror of my managed Mbeans?...e.g.
> I connect with mBean servers once, and I'd be notified when an mbean
> register/deregister;

There's a chapter of the JDMK tutorial dedicated to federation.
You will find it here.
http://docs.sun.com/app/docs/doc/816-7609/6mdjrf87n?a=view

When you create a cascading agent it creates one proxy per MBean found
in the MBeanServer. This makes the master agent's
MBeanServerDelegate MBean emits an MBean creation notification
for each registered MBean proxy.
The cascading agent also register for MBean creation/deletion
notifications with the sub agent it manages. When an mbean appears
or disappears from the sub agent, a proxy is created or deregistered in
the master agent.  This makes the master agent's
MBeanServerDelegate MBean emits an MBean creation or deletion
notification for that MBean proxy.

If you're federating remote MBeanServers the best way is to use
the CascadingService MBean, which will in turn create
the ProxyCascadingAgents required.
If you're federating local MBeanServers - then you will have
to use  ProxyCascadingAgents directly as shown on my blog.


> - What happen when jmx connection shut down?

I believe the cascading agent will unregister the MBean proxies, emit a
notification, and become inactive.

-- daniel
http://blogs.sun.com/jmxetc

>
> thanks
> luke
>
>
>
> --
>
> "I have discovered a truly remarkable proof which this margin is too
> small to contain"
>
> Pierre de Fermat, ca 1635.
> --------------------------------------------------------
> ===========================================================================
> The JDMK-FORUM archives are accessible at http://archives.java.sun.com 
> To unsubscribe, send email to listserv@... and include in the
> body of the message "signoff JDMK-FORUM". For general help, send email
> to listserv@... and include in the body of the message "help".
>

===========================================================================
The JDMK-FORUM archives are accessible at http://archives.java.sun.com
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff JDMK-FORUM".  For general help, send email to
listserv@... and include in the body of the message "help".
LightInTheBox - Buy quality products at wholesale price!