Look at the source for org.jboss.Main and org.jboss.system.Server. JbossMQ runs in the context of the JMX microkernel, so you start up the JMX server and then deploy some core services. One of the core services reads jboss.jcml (or in 3.0 jboss-service.xml) which define the remaining core services, one of which is JbossMQ.
The JMX microkernel makes doing what you're talking about very easy.
Incidentally, I'm looking at solutions for replacing SwiftMQ as well (since now they're fully commercial). I haven't yet found an open source JMS provider that supports the "federated network" concept. Have you?
No I havn't found anything either, I'm looking at JBossMQ and OpenJMS (the two obvious really!) but I'm gonna have to either live without the federated stuff or code it in myself!
what is this "federated stuff"? any docs on that? URL?
Have you take a look at JORAM,
I am a J2EE & JBoss newbies and looking at possibilty of using JORAM with JBoss. Any pointer on this this are welcome :)