I'm trying to get a web application that has it's own mbean server running under JBoss 4.04GA. The mbean server is part of spring, our application is based on Spring and I'd like to keep the application as portable across app servers as possible, so I don't want to just use MBeanServerLocator.locateJBoss to get a mbeanServer. Adding this line into the application context:
<bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean"/>
Looks like the above code only works when running under a 1.5+ JVM. 1.4 JVM doesn't appear to be supported when trying to incorparate Spring and JBoss JMX.