JMX export structure is similar to Spring JMX exporter

Is there something similar to Spring JMX exporter there WITHOUT using Spring framework?

SimpleJMX seems reasonable, but it seems to be also a very young wireframe that only one person pushed.

I need to expose a whole bunch of attributes, methods and classes like JMX, but I don't want to mess with the JMX API and write many JMX interfaces.

And there is no way to introduce Spring in the project (just in case, if you ask). Any hints or ideas are welcome :-)

+5
source share
2 answers

, SimpleJMX JMXUtils. , , Spring JMX. , JMXUtils .

JMXUtils / MBeans mbean. GlassFish V3 , MBean mbeans.

, API SimpleJMX , MBeanServer SimpleJMX API, mbeans ( API), mbeans mbean. , JMXUtils.

JMXUtils bean. SimpleJMX (domainName, beanName), , JMXUtils mbeans mbean. , , SimpleJMX .

, . JMXUtils.

+2

org.weakref.jmxutils commons-dbcp-jmx. ManagedBasicDataSource.java :

@Managed(description = "The current number of active connections that have been allocated from this data source.")
public synchronized int getNumActive() {
    return super.getNumActive();
}

, , , .

+2

All Articles