"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/...
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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...