activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r692341 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/jms/JmsConnector.java
Date Fri, 05 Sep 2008 05:57:11 GMT
Author: rajdavies
Date: Thu Sep  4 22:57:10 2008
New Revision: 692341

URL: http://svn.apache.org/viewvc?rev=692341&view=rev
Log:
Applied patch for https://issues.apache.org/activemq/browse/AMQ-1621

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/jms/JmsConnector.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/jms/JmsConnector.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/jms/JmsConnector.java?rev=692341&r1=692340&r2=692341&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/jms/JmsConnector.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/jms/JmsConnector.java
Thu Sep  4 22:57:10 2008
@@ -140,6 +140,11 @@
             LOG.info("JMS Connector " + getName() + " Stopped");
         }
     }
+    
+    public void clearBridges() {
+        inboundBridges.clear();
+        outboundBridges.clear();
+    }
 
     protected abstract Destination createReplyToBridge(Destination destination, Connection
consumerConnection, Connection producerConnection);
 
@@ -318,11 +323,11 @@
     }
 
     protected void removeInboundBridge(DestinationBridge bridge) {
-        inboundBridges.add(bridge);
+        inboundBridges.remove(bridge);
     }
 
     protected void removeOutboundBridge(DestinationBridge bridge) {
-        outboundBridges.add(bridge);
+        outboundBridges.remove(bridge);
     }
 
     public String getName() {



Mime
View raw message