You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ha...@apache.org on 2014/12/16 23:09:53 UTC
[05/16] activemq git commit:
https://issues.apache.org/jira/browse/AMQ-5258
https://issues.apache.org/jira/browse/AMQ-5258
Fixed, early created connection is closed so that it can expire or error
out as needed.
Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/8ae10b93
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/8ae10b93
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/8ae10b93
Branch: refs/heads/activemq-5.10.x
Commit: 8ae10b93958fa38e8e56e83e076936c0a010c8e3
Parents: 59109a6
Author: Timothy Bish <ta...@gmail.com>
Authored: Mon Jul 7 14:29:21 2014 -0400
Committer: Hadrian Zbarcea <ha...@apache.org>
Committed: Mon Dec 15 19:02:59 2014 -0500
----------------------------------------------------------------------
.../java/org/apache/activemq/jms/pool/PooledConnectionFactory.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq/blob/8ae10b93/activemq-jms-pool/src/main/java/org/apache/activemq/jms/pool/PooledConnectionFactory.java
----------------------------------------------------------------------
diff --git a/activemq-jms-pool/src/main/java/org/apache/activemq/jms/pool/PooledConnectionFactory.java b/activemq-jms-pool/src/main/java/org/apache/activemq/jms/pool/PooledConnectionFactory.java
index e60c52b..12852ce 100644
--- a/activemq-jms-pool/src/main/java/org/apache/activemq/jms/pool/PooledConnectionFactory.java
+++ b/activemq-jms-pool/src/main/java/org/apache/activemq/jms/pool/PooledConnectionFactory.java
@@ -267,7 +267,7 @@ public class PooledConnectionFactory implements ConnectionFactory {
if (isCreateConnectionOnStartup()) {
try {
// warm the pool by creating a connection during startup
- createConnection();
+ createConnection().close();
} catch (JMSException e) {
LOG.warn("Create pooled connection during start failed. This exception will be ignored.", e);
}