You mean the MBeanServer? We use our MX implementation so there is no issue 
there.

Now, what overhead those MXBeans impose that I don't know, but they must be 
integrated with the underlying JVM in a native way probably.

A couple of glitches I noticed:

To activate/integrate with this, you need to let them 
(ManagementFactory.getPlatformMBeanServer()) create the MBeanServer (they'll 
use the initial 'builder' setting so we still get our own JMX impl), and then 
we use this as our main MBeanServer.

It doesn't work the other way around i.e. provide them with an existing 
MBeanServer to use (which is stupid). Also, while the docs say it'll use 
"DefaultDomain" for this MBeanServer, apparently 'null' is used as the default 
domain (this must be a bug). Again, this should be settable.

So we loose "jboss" being the default domain, but that's not too bad, with a 
little twiking of the MBeanServerLocator.locateJBoss() (as Adrian noted) we can 
locate the main jboss MBeanServer not necessarily by name (well, we could look 
for 'null') but instead store a reference to it at instantiation time, which is 
probably more correct, since we could have many "jboss" MBeanServers...

Another strange thing, although it instantiates you own JMX MBeanServer 
implementation, it hijacks the javax.management.MBeanServerDelegate to show 
'Sun' as being the ImplementationVendor, generating it's own MBeanServerId (did 
we have some code that depended on the id format/uniqueness???)

But wait! I just checked, this happens anyway it you run under jdk5, I hadn't 
noticed it before...

In any case, it looks pretty cool on the jmx-console to get all this metrics 
about the garbage collector, etc. and it opens up new possibilities for setting 
up all sorts of monitors.

I think I'll commit this to head so you can have look (the change is pretty 
minor), so when jboss starts under jdk5 it'll instantiate those MXBeans, and 
I'll use also a system property to turn off this, if needed (or the ther way 
round? :)

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871276#3871276

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3871276


-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to