From b76530740e60d40f9bf3107d1d440e85122bda6b Mon Sep 17 00:00:00 2001 From: James Strachan Date: Thu, 6 Apr 2006 18:56:36 +0000 Subject: [PATCH] allow folks to serialize the broker service if they really need to git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@392035 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/broker/BrokerService.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java b/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java index 5f7dc878d5..021da94c73 100644 --- a/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java @@ -18,6 +18,7 @@ package org.apache.activemq.broker; import java.io.File; import java.io.IOException; +import java.io.Serializable; import java.net.URI; import java.net.URISyntaxException; import java.util.ArrayList; @@ -79,10 +80,12 @@ import edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicBoolean; * * @version $Revision: 1.1 $ */ -public class BrokerService implements Service { +public class BrokerService implements Service, Serializable { + public static final String DEFAULT_PORT = "61616"; private static final Log log = LogFactory.getLog(BrokerService.class); + private static final long serialVersionUID = 7353129142305630237L; private boolean useJmx = true; private boolean persistent = true; @@ -106,7 +109,7 @@ public class BrokerService implements Service { private List registeredMBeanNames = new CopyOnWriteArrayList(); private List jmsConnectors = new CopyOnWriteArrayList(); private MasterConnector masterConnector; - private Thread shutdownHook; + private transient Thread shutdownHook; private String[] transportConnectorURIs; private String[] networkConnectorURIs; private String[] proxyConnectorURIs;