Add JMX MBean for Tomcat DataSource

If the DataSource is a Tomcat one we force it to register an MBean
if spring.jmx.enabled=true

Fixes gh-1590
This commit is contained in:
Dave Syer
2014-11-03 13:28:26 +00:00
parent 0061f237b8
commit f304d46955
4 changed files with 59 additions and 6 deletions

View File

@@ -1 +1,2 @@
spring.datasource.url: jdbc:hsqldb:mem:scratchdb
spring.jmx.default_domain: jpa.sample