You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by de...@apache.org on 2010/03/31 13:51:50 UTC

svn commit: r929488 - /activemq/trunk/activemq-pool/src/main/java/org/apache/activemq/pool/ConnectionPool.java

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);
+        	}
         }
     }