[jboss-user] [Microcontainer] - Re: Management questions

alesj do-not-reply at jboss.com
Tue Sep 16 04:13:56 EDT 2008

"jmesnil" wrote : 
  | - Which MBeanServer is used by the MC to register its annotated resources (the platform one or another)? Is it configurable?
Dunno what exactly you mean?
Where, when, ...
Which annotated resources?
Configurable how?

I'll try to answer in AS5 notion.
We use our own config of MBeanServer - see JMXKernel bean in jmx.xml.
In order to use @JMX or our custom -service.xml,
underlying MBeanServer needs to be JBoss impl,
since we use some custom hooks / impl details.

I learned that the hard way :-),
when using this features outside AS,
in my MC demos:
 - http://anonsvn.jboss.org/repos/jbossas/projects/demos/trunk/jmx/src/main/resources/META-INF/system-jmx-beans.xml

But as you can see - see the rest of demo code - 
not a lot of code is required to use this.
Hence I can say it's very configurable.

"jmesnil" wrote : 
  | - How can I inject this MBeanServer to be also used as the MBeanServer for our own managed resources?
I guess there is a 1M ways to do that. :-)
Once JMXKernel bean is setup - mbean server is fully functional,
you can do what ever you want with this bean.

If you give me more exact question,
I can then give you more exact answer. ;-)

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

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

More information about the jboss-user mailing list