• Andy Wilkinson's avatar
    Prevent attempt to export MBean for DataSource retreived from JNDI · 82d1e61a
    Andy Wilkinson authored
    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
    82d1e61a
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
spring-boot-versions Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...