activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r420713 - in /incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/transport/vm: VMTransport.java VMTransportFactory.java
Date Tue, 11 Jul 2006 04:31:15 GMT
Author: chirino
Date: Mon Jul 10 21:31:14 2006
New Revision: 420713

URL: http://svn.apache.org/viewvc?rev=420713&view=rev
Log:
Impoved error logging and throw an exception if the transport is being used when it has been
disconnected.

Modified:
    incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransport.java
    incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransportFactory.java

Modified: incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransport.java
URL: http://svn.apache.org/viewvc/incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransport.java?rev=420713&r1=420712&r2=420713&view=diff
==============================================================================
--- incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransport.java
(original)
+++ incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransport.java
Mon Jul 10 21:31:14 2006
@@ -77,6 +77,8 @@
             }else {
                 queue.add(command);
             }
+        } else {
+            throw new IOException("Peer disconnected.");
         }
     }
 

Modified: incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransportFactory.java
URL: http://svn.apache.org/viewvc/incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransportFactory.java?rev=420713&r1=420712&r2=420713&view=diff
==============================================================================
--- incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransportFactory.java
(original)
+++ incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransportFactory.java
Mon Jul 10 21:31:14 2006
@@ -143,7 +143,7 @@
      */
     private TransportServer bind(URI location,boolean dispose) throws IOException{
         String host=location.getHost();
-        log.info("binding to broker: " + host);
+        log.debug("binding to broker: " + host);
         VMTransportServer server=new VMTransportServer(location,dispose);
         Object currentBoundValue=servers.get(host);
         if(currentBoundValue!=null){
@@ -155,10 +155,10 @@
 
     public static void stopped(VMTransportServer server){
         String host=server.getBindURI().getHost();
-        log.info("Shutting down VM connectors for broker: "  +host);
         servers.remove(host);
         TransportConnector connector=(TransportConnector) connectors.remove(host);
         if(connector!=null){
+            log.debug("Shutting down VM connectors for broker: "  +host);
             ServiceSupport.dispose(connector);
             BrokerService broker=(BrokerService) brokers.remove(host);
             if(broker!=null){
@@ -168,10 +168,10 @@
     }
 
     public static void stopped(String host){
-        log.info("Shutting down VM connectors for broker: "  +host);
         servers.remove(host);
         TransportConnector connector=(TransportConnector) connectors.remove(host);
         if(connector!=null){
+            log.debug("Shutting down VM connectors for broker: "  +host);
             ServiceSupport.dispose(connector);
             BrokerService broker=(BrokerService) brokers.remove(host);
             if(broker!=null){



Mime
View raw message