Class JmxUtil

java.lang.Object
org.apache.tomcat.jdbc.pool.jmx.JmxUtil

public class JmxUtil extends Object
Utility class for JMX registration of JDBC pool components.
  • Method Details

    • registerJmx

      public static ObjectName registerJmx(ObjectName base, String keyprop, Object obj)
      Register an object as an MBean.
      Parameters:
      base - the base object name
      keyprop - the key property
      obj - the object to register
      Returns:
      the registered object name, or null on failure. A registration the MBean server refused - because the name is already in use by another MBean, for instance - is such a failure, so a non-null name always means this call is the one that published the object under that name
    • unregisterJmx

      public static void unregisterJmx(ObjectName oname)
      Unregister an MBean.
      Parameters:
      oname - the object name to unregister