mirror of https://github.com/apache/activemq.git
Fixed, early created connection is closed so that it can expire or error out as needed.
This commit is contained in:
parent
74846bb2b4
commit
c6d0aaa81b
|
@ -285,7 +285,7 @@ public class PooledConnectionFactory implements ConnectionFactory, QueueConnecti
|
||||||
if (isCreateConnectionOnStartup()) {
|
if (isCreateConnectionOnStartup()) {
|
||||||
try {
|
try {
|
||||||
// warm the pool by creating a connection during startup
|
// warm the pool by creating a connection during startup
|
||||||
createConnection();
|
createConnection().close();
|
||||||
} catch (JMSException e) {
|
} catch (JMSException e) {
|
||||||
LOG.warn("Create pooled connection during start failed. This exception will be ignored.", e);
|
LOG.warn("Create pooled connection during start failed. This exception will be ignored.", e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue