activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject git commit: https://issues.apache.org/jira/browse/AMQ-5258
Date Mon, 07 Jul 2014 18:29:40 GMT
Repository: activemq
Updated Branches:
  refs/heads/trunk 74846bb2b -> c6d0aaa81


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/c6d0aaa8
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/c6d0aaa8
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/c6d0aaa8

Branch: refs/heads/trunk
Commit: c6d0aaa81b8385209507b0ab22a107ea247be587
Parents: 74846bb
Author: Timothy Bish <tabish121@gmail.com>
Authored: Mon Jul 7 14:29:21 2014 -0400
Committer: Timothy Bish <tabish121@gmail.com>
Committed: Mon Jul 7 14:29:21 2014 -0400

----------------------------------------------------------------------
 .../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/c6d0aaa8/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 83807f9..a786691 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
@@ -285,7 +285,7 @@ public class PooledConnectionFactory implements ConnectionFactory, QueueConnecti
         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);
             }


Mime
View raw message