Details
-
Improvement
-
Resolution: Fixed
-
Major
-
12.5.1
-
None
Description
The documentation at https://commons.apache.org/proper/commons-dbcp/configuration.html exposes the following configuration parameter:
jmxName Registers the DataSource as JMX MBean under specified name. The name has to conform to the JMX Object Name Syntax (see javadoc).
Following up on this and on a reply from https://stackoverflow.com/a/38337147/5198689, I got it working by adding the following parameter to hibernate.cfg.xml:
<property name="hibernate.dbcp.jmxName">org.apache.dbcp:DataSource=dbcp</property>
(Note: AFAIU, the name can be anything, just tried to follow the JMX naming, but it can be anything else)
Produces the following info (viewed with glowroot):