This content has been marked as final.
Show 2 replies
-
1. Re: Management interface to webapps
nappinc Feb 19, 2007 9:54 AM (in response to nappinc)Problem solved!
By ignoring the advice to use a .sar file, I've added code to my main application that programmatically registers the MBean. And if using Spring this code can be replaced by some very simple configuration instead.// get the JBoss JMX MBean Server MBeanServer server = (MBeanServer) MBeanServerFactory.findMBeanServer(null).get(0); // register custom MBean MonitoringMBean bean = new Monitoring(); server.registerMBean(bean, new ObjectName("test:name=Monitoring"));
This is a much simpler solution, and needs no classloading configuration at all... -
2. Re: Management interface to webapps
dode Nov 1, 2007 4:23 PM (in response to nappinc)Perfect, just what I was looking for!
Thanks,
Torsten