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:
James Strachan 2005-12-16 13:56:13 +00:00
parent e4f8360348
commit 0d6f94b93d
1 changed files with 6 additions and 1 deletions

View File

@ -247,7 +247,12 @@ public class BrokerService implements Service {
// -------------------------------------------------------------------------
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();