I suppose the easiest way to do this with fewest dependencies is to not use JNDI but rather use JMX only.
I think once I get an MBeanServerConnection I should be ok, so I guess my question is now, how do I discover the URL for such a connection?
I'm currently reading a tutorial that includes the following:
JMXServiceURL url = new JMXServiceURL(
JMXConnector jmxc = JMXConnectorFactory.connect(url, null);
But that's a sun tutorial and not jboss-specific, so now my task is to figure out the service url.