activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r392035 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
Date Thu, 06 Apr 2006 18:56:38 GMT
Author: jstrachan
Date: Thu Apr  6 11:56:36 2006
New Revision: 392035

URL: http://svn.apache.org/viewcvs?rev=392035&view=rev
Log:
allow folks to serialize the broker service if they really need to

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

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java?rev=392035&r1=392034&r2=392035&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
Thu Apr  6 11:56:36 2006
@@ -18,6 +18,7 @@
 
 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 @@
  *
  * @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 @@
     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;



Mime
View raw message