TreeCacheAop was a TreeCacheMBean by virtue of the fact that it extended TreeCache or
else he would not have been able to create it through the MBeanServer. However, this
does not expose the putObject operation.
You can expose any object as an mbean using the xmbean deployment mechanism without
having to introduce management interfaces. Create an xmbean descriptor for the
TreeCacheAop class following the docs/dtds/jboss_xmbean_1_1.dtd and create a
org.jboss.mx.modelmbean.XMBean doing something like this:
| public static ObjectName createServletMBean(MBeanServer server)
| throws Exception
| {
| ObjectName oname = new ObjectName(...);
| ClassLoader loader = Thread.currentThread().getContextClassLoader();
| URL servletInfoURL = loader.getResource("META-INF/servletinfo-xmbean.xml");
| XMBean xmbean = new XMBean(info, servletInfoURL);
| server.registerMBean(xmbean, oname);
| return oname;
| }
|
|
<a
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827171#3827171">View
the original post</a>
<a
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827171>Reply
to the post</a>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development