I'm using JBoss and want to expose some Spring-JMX exported beans to the JBoss MBean server. Following the simple example in the JBoss developer guide, I've written a SpringContainerMBean, which simply allows a ClasspathXMLApplicationContext to be created from a list of resource locations - all the further work is done in the applicationContext.xml.
In JBoss, all that then has to be done is create a SAR, exploded or otherwise, to get JBoss to load up things at startup in a manner that's similar to the mechanism used for Web apps.
Surely someone's written something like this before? It would be really handy to have a generic bootstrapping MBean which can create it's own application context.