mirror of https://github.com/apache/activemq.git
allow multiple calls to start() as its quite easy to do these days with all the different configuration mechanisms (URI, spring, xbean, command line)
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@357158 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e4f8360348
commit
0d6f94b93d
|
@ -247,7 +247,12 @@ public class BrokerService implements Service {
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
public void start() throws Exception {
|
public void start() throws Exception {
|
||||||
if (! started.compareAndSet(false, true)) {
|
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();
|
processHelperProperties();
|
||||||
|
|
Loading…
Reference in New Issue