spring-boot/spring-boot-autoconfigure
Andy Wilkinson 82d1e61ab1 Prevent attempt to export MBean for DataSource retreived from JNDI
Tomcat 8's default DataSource implemention is an MBean. Previously,
when such a DataSource was consumed from JNDI and an MBeanExporter had
been auto-configured an attempt would be made to export this MBean to
the MBean server. This would fail due to Tomcat having already
registered the MBean.

This commit updates JndiDataSourceAutoConfiguration to instruct the
MBeanExporter (if there is one) not to export a DataSource MBean
that's been retrieved from JNDI. The assumption is that any MBean in
JNDI will have already been registered with the MBean server by the
same infrastructure that registered it with JNDI.

Fixes gh-2397
2015-02-09 13:05:07 +00:00
..
src Prevent attempt to export MBean for DataSource retreived from JNDI 2015-02-09 13:05:07 +00:00
.gitignore Restore test classes 2014-06-01 13:11:25 +01:00
pom.xml Allow XA DataSource and ConnFactory pools to be configured via the env 2015-01-27 10:55:56 +00:00