activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r386586 - in /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq: ActiveMQQueueBrowser.java transport/tcp/ResponseHolder.java
Date Fri, 17 Mar 2006 09:15:40 GMT
Author: jstrachan
Date: Fri Mar 17 01:15:38 2006
New Revision: 386586

URL: http://svn.apache.org/viewcvs?rev=386586&view=rev
Log:
fix for AMQ-627 to always catch and deal with interupted exceptions

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQQueueBrowser.java
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/ResponseHolder.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQQueueBrowser.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQQueueBrowser.java?rev=386586&r1=386585&r2=386586&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQQueueBrowser.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQQueueBrowser.java
Fri Mar 17 01:15:38 2006
@@ -229,10 +229,12 @@
      */
     protected void waitForMessage() {
         try {
-            synchronized (semaphore ) {
+            synchronized (semaphore) {
                 semaphore.wait(2000);
             }
-        } catch (InterruptedException e) {
+        }
+        catch (InterruptedException e) {
+            Thread.currentThread().interrupt();
         }
     }
     

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/ResponseHolder.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/ResponseHolder.java?rev=386586&r1=386585&r2=386586&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/ResponseHolder.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/ResponseHolder.java
Fri Mar 17 01:15:38 2006
@@ -69,7 +69,7 @@
                     lock.wait(timeout);
                 }
                 catch (InterruptedException e) {
-                    e.printStackTrace();
+                    Thread.currentThread().interrupt();
                 }
             }
         }



Mime
View raw message