geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r525554 - /geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java
Date Wed, 04 Apr 2007 16:45:16 GMT
Author: dims
Date: Wed Apr  4 09:45:14 2007
New Revision: 525554

URL: http://svn.apache.org/viewvc?view=rev&rev=525554
Log:
sync up with latest Axis2 snapshots

Modified:
    geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java

Modified: geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java?view=diff&rev=525554&r1=525553&r2=525554
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java
(original)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/Axis2WebServiceContainer.java
Wed Apr  4 09:45:14 2007
@@ -350,6 +350,7 @@
       private Response response;
       private CountDownLatch responseReadySignal = new CountDownLatch(1);
       RequestResponseTransportStatus status = RequestResponseTransportStatus.INITIAL;
+      AxisFault faultToBeThrownOut = null;
       
       Axis2RequestResponseTransport(Response response)
       {
@@ -381,13 +382,21 @@
         signalResponseReady();
       }
       
-      public void awaitResponse() throws InterruptedException
+      public void awaitResponse() throws InterruptedException, AxisFault
       {
         if (log.isDebugEnabled()) {
             log.debug("Blocking servlet thread -- awaiting response");
         }
         status = RequestResponseTransportStatus.WAITING;
         responseReadySignal.await();
+        if (faultToBeThrownOut != null) {
+            throw faultToBeThrownOut;
+        }
+      }
+
+      public void signalFaultReady(AxisFault fault) {
+        faultToBeThrownOut = fault;
+        signalResponseReady();
       }
 
       public void signalResponseReady()



Mime
View raw message