use of org.apache.openejb.monitoring.ObjectNameBuilder in project tomee by apache.
the class SimpleRouter method JMXOn.
public void JMXOn(final String name) {
final ObjectNameBuilder jmxName = new ObjectNameBuilder("openejb.management");
jmxName.set("J2EEServer", "Router");
jmxName.set("J2EEApplication", name);
jmxName.set("Type", "SimpleRouter");
objectName = jmxName.build();
try {
LocalMBeanServer.get().registerMBean(new DynamicMBeanWrapper(this), objectName);
} catch (final Exception e) {
objectName = null;
}
}
Aggregations