cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1303345 - in /cxf/branches/2.5.x-fixes: ./ rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/ systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/rm/
Date Wed, 21 Mar 2012 10:23:03 GMT
Author: ay
Date: Wed Mar 21 10:23:02 2012
New Revision: 1303345

URL: http://svn.apache.org/viewvc?rev=1303345&view=rev
Log:
Merged revisions 1303342 via  svn merge from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1303342 | ay | 2012-03-21 11:16:52 +0100 (Wed, 21 Mar 2012) | 1 line
  
  adding another fix and test to CXF-4188
........

Added:
    cxf/branches/2.5.x-fixes/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/rm/ServiceInvocationAtMostOnceAckTest.java
      - copied unchanged from r1303342, cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/rm/ServiceInvocationAtMostOnceAckTest.java
    cxf/branches/2.5.x-fixes/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/rm/sync-ack-atmostonce-server.xml
      - copied unchanged from r1303342, cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/rm/sync-ack-atmostonce-server.xml
Modified:
    cxf/branches/2.5.x-fixes/   (props changed)
    cxf/branches/2.5.x-fixes/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/Destination.java
    cxf/branches/2.5.x-fixes/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/DestinationSequence.java
    cxf/branches/2.5.x-fixes/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/RMInInterceptor.java

Propchange: cxf/branches/2.5.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.5.x-fixes/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/Destination.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/Destination.java?rev=1303345&r1=1303344&r2=1303345&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/Destination.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/Destination.java
Wed Mar 21 10:23:02 2012
@@ -213,6 +213,17 @@ public class Destination extends Abstrac
         }
     }
     
+    void releaseDeliveringStatus(Message message) {
+        RMProperties rmps = RMContextUtils.retrieveRMProperties(message, false);
+        SequenceType sequenceType = rmps.getSequence();
+        if (null != sequenceType) {
+            DestinationSequence seq = getSequence(sequenceType.getIdentifier());
+            if (null != seq) {
+                seq.removeDeliveringMessageNumber(sequenceType.getMessageNumber());
+            }
+        }
+    }
+    
     private static Message createMessage(Exchange exchange) {
         Endpoint ep = exchange.get(Endpoint.class);
         Message msg = null;

Modified: cxf/branches/2.5.x-fixes/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/DestinationSequence.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/DestinationSequence.java?rev=1303345&r1=1303344&r2=1303345&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/DestinationSequence.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/DestinationSequence.java
Wed Mar 21 10:23:02 2012
@@ -253,7 +253,7 @@ public class DestinationSequence extends
         }
         if (robust && !robustDelivering) {
             // no check performed if in robust and not in delivering
-            deliveringMessageNumbers.remove(mn);
+            removeDeliveringMessageNumber(mn);
             return true;
         }
         if (cont != null && da.isSetInOrder() && !cont.isNew()) {
@@ -280,6 +280,10 @@ public class DestinationSequence extends
         return true;
     }
     
+    void removeDeliveringMessageNumber(long mn) {
+        deliveringMessageNumbers.remove(mn);
+    }
+    
     private Continuation getContinuation(Message message) {
         if (message == null) {
             return null;

Modified: cxf/branches/2.5.x-fixes/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/RMInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/RMInInterceptor.java?rev=1303345&r1=1303344&r2=1303345&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/RMInInterceptor.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/RMInInterceptor.java
Wed Mar 21 10:23:02 2012
@@ -47,6 +47,15 @@ public class RMInInterceptor extends Abs
     @Override
     public void handleFault(Message message) {
         message.put(MAPAggregator.class.getName(), true);
+        if (MessageUtils.isTrue(message.get(RMMessageConstants.DELIVERING_ROBUST_ONEWAY)))
{
+            // revert the delivering entry from the destination sequence
+            try {
+                Destination destination = getManager().getDestination(message);
+                destination.releaseDeliveringStatus(message);
+            } catch (RMException e) {
+                LOG.log(Level.WARNING, "Failed to revert the delivering status");
+            }
+        }
     }
 
     protected void handle(Message message) throws SequenceFault, RMException {



Mime
View raw message