activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadr...@apache.org
Subject [05/16] activemq git commit: https://issues.apache.org/jira/browse/AMQ-5258
Date Tue, 16 Dec 2014 22:09:53 GMT
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 <tabish121@gmail.com>
Authored: Mon Jul 7 14:29:21 2014 -0400
Committer: Hadrian Zbarcea <hadrian@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);
             }


Mime
View raw message