I'd like to be able to dynamically register MBeans (services) with JBoss after it has been started, just as though I'd included them in the JCML file at startup. Would I be able to do this safely by using the code that someone else had posted earlier in this forum?
// get the JBoss MBean server
MBeanServer xserver = (MBeanServer) MBeanServerFactory.findMBeanServer(null).get(0);
// register my bean
Assuming you're using 2.x series, yes.