Author: jstrachan
Date: Fri Dec 16 05:56:13 2005
New Revision: 357158
URL: http://svn.apache.org/viewcvs?rev=357158&view=rev
Log:
allow multiple calls to start() as its quite easy to do these days with all the
different configuration mechanisms (URI, spring, xbean, command line)
Modified:
incubator/activemq/trunk/activemq-core/src/main/java/org/activemq/broker/BrokerService.java
Modified:
incubator/activemq/trunk/activemq-core/src/main/java/org/activemq/broker/BrokerService.java
URL:
http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/activemq/broker/BrokerService.java?rev=357158&r1=357157&r2=357158&view=diff
==============================================================================
---
incubator/activemq/trunk/activemq-core/src/main/java/org/activemq/broker/BrokerService.java
(original)
+++
incubator/activemq/trunk/activemq-core/src/main/java/org/activemq/broker/BrokerService.java
Fri Dec 16 05:56:13 2005
@@ -247,7 +247,12 @@
//
-------------------------------------------------------------------------
public void start() throws Exception {
if (! started.compareAndSet(false, true)) {
- throw new IllegalStateException("Allready started.");
+ // lets just ignore redundant start() calls
+ // as its way too easy to not be completely sure if start() has
been
+ // called or not with the gazillion of different configuration
mechanisms
+
+ //throw new IllegalStateException("Allready started.");
+ return;
}
processHelperProperties();