• Andy Wilkinson's avatar
    Stop ActiveMQ pooled connection factory when context is closed · 7d5cc3da
    Andy Wilkinson authored
    Previously, ActiveMQ's pooled connection factory was not closed as
    part of the application context being closed. This would leave
    non-daemon threads running which could cause shutdown to hang unless
    the JVM itself was shutting down (in which case a shutdown hook would
    stop the pool).
    
    This commit configures each pooled connection factory bean with a
    custom destroy method so that the pool is stopped as part of the
    application context being closed. To allow the destroy method to only
    be declared when the connection factory is pooled, the bean method
    has been split into two; one for pooled and one for non-pooled. This
    is a partial backport of the changes made in bedf2edf.
    
    Closes gh-4748
    7d5cc3da
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...