activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r929488 - /activemq/trunk/activemq-pool/src/main/java/org/apache/activemq/pool/ConnectionPool.java
Date Wed, 31 Mar 2010 11:51:50 GMT
Author: dejanb
Date: Wed Mar 31 11:51:49 2010
New Revision: 929488

URL: http://svn.apache.org/viewvc?rev=929488&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-2677 - starting connection in a pool

Modified:
    activemq/trunk/activemq-pool/src/main/java/org/apache/activemq/pool/ConnectionPool.java

Modified: activemq/trunk/activemq-pool/src/main/java/org/apache/activemq/pool/ConnectionPool.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-pool/src/main/java/org/apache/activemq/pool/ConnectionPool.java?rev=929488&r1=929487&r2=929488&view=diff
==============================================================================
--- activemq/trunk/activemq-pool/src/main/java/org/apache/activemq/pool/ConnectionPool.java
(original)
+++ activemq/trunk/activemq-pool/src/main/java/org/apache/activemq/pool/ConnectionPool.java
Wed Mar 31 11:51:49 2010
@@ -90,7 +90,12 @@ public class ConnectionPool {
 
     public void start() throws JMSException {
         if (started.compareAndSet(false, true)) {
-            connection.start();
+        	try {
+        		connection.start();
+        	} catch (JMSException e) {
+        		started.set(false);
+        		throw(e);
+        	}
         }
     }
 



Mime
View raw message