cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1087657 - /cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/continuations/JMSContinuation.java
Date Fri, 01 Apr 2011 11:42:33 GMT
Author: ningjiang
Date: Fri Apr  1 11:42:33 2011
New Revision: 1087657

URL: http://svn.apache.org/viewvc?rev=1087657&view=rev
Log:
CXF-3427 JMSContinuation should be thread safe

Modified:
    cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/continuations/JMSContinuation.java

Modified: cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/continuations/JMSContinuation.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/continuations/JMSContinuation.java?rev=1087657&r1=1087656&r2=1087657&view=diff
==============================================================================
--- cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/continuations/JMSContinuation.java
(original)
+++ cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/continuations/JMSContinuation.java
Fri Apr  1 11:42:33 2011
@@ -76,7 +76,7 @@ public class JMSContinuation implements 
         return isResumed;
     }
 
-    public void reset() {
+    public synchronized void reset() {
         cancelTimerTask();
         isNew = true;
         isPending = false;
@@ -84,7 +84,7 @@ public class JMSContinuation implements 
         userObject = null;
     }
 
-    public void resume() {
+    public synchronized void resume() {
         if (isResumed || !isPending) {
             return;
         }
@@ -93,7 +93,7 @@ public class JMSContinuation implements 
         doResume();
     }
     
-    protected synchronized void doResume() {
+    protected void doResume() {
         updateContinuations(true);
         ClassLoader origLoader = Thread.currentThread().getContextClassLoader();
         try {
@@ -114,7 +114,7 @@ public class JMSContinuation implements 
         userObject = o;
     }
 
-    public boolean suspend(long timeout) {
+    public synchronized boolean suspend(long timeout) {
         
         if (isPending) {
             return false;



Mime
View raw message