On May 26, 2013, at 1123PM, Greg Trasuk wrote: > > Hi all: > > The JMX docs talk about looking up JMX servers in Jini registrars. Did > anyone ever do that, and if so, how do we go about publishing MBean > servers through Jini?
Create a JMXServiceURL, then use that to create JMXConnectorServer. Add to your service the 2 following attributes: JMXProtocolType(JMXProtocolType.RMI); JMXProperty(Constants.JMX_SERVICE_URL, jmxServiceURL); > > I ask because I've been working on the container, and it publishes > MBeans for its admin interfaces. I'd like to have a command-line or > scripted admin program, which should be possibe through the JMX MBeans > (so far I've been hitting them with jconsole). The JMX runtime includes > an RMI connector, but it seems a little funny to use plain-old unsecure > rmi when we've got JERI. > > Any JMX expertise out there? Would love to have someone do the admin > interface. I'm also thinking that a Swing-based admin interface would > be interesting. Possibly using Groovy or Jython. Or, just exec jconsole with the JMXProperty from above, no more work is needed. Dennis