activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r663604 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
Date Thu, 05 Jun 2008 13:29:59 GMT
Author: rajdavies
Date: Thu Jun  5 06:29:59 2008
New Revision: 663604

URL: http://svn.apache.org/viewvc?rev=663604&view=rev
Log:
Fix for https://issues.apache.org/activemq/browse/AMQ-1772

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java?rev=663604&r1=663603&r2=663604&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
Thu Jun  5 06:29:59 2008
@@ -487,6 +487,11 @@
             getBroker().brokerServiceStarted();
         } catch (Exception e) {
             LOG.error("Failed to start ActiveMQ JMS Message Broker. Reason: " + e, e);
+            try{
+                stop();
+            }catch(Exception ex) {
+                LOG.warn("Failed to stop broker after failure in start ",ex);
+            }
             throw e;
         }
     }



Mime
View raw message