whitlock    2002/12/18 05:53:25

  Modified:    java/src/org/apache/wsif/providers/jms
                        WSIFOperation_Jms.java
  Log:
  Better success checks in processAsyncResponse
  
  Revision  Changes    Path
  1.38      +3 -10     
xml-axis-wsif/java/src/org/apache/wsif/providers/jms/WSIFOperation_Jms.java
  
  Index: WSIFOperation_Jms.java
  ===================================================================
  RCS file: 
/home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/jms/WSIFOperation_Jms.java,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- WSIFOperation_Jms.java    7 Dec 2002 12:33:55 -0000       1.37
  +++ WSIFOperation_Jms.java    18 Dec 2002 13:53:25 -0000      1.38
  @@ -278,8 +278,6 @@
                WSIFResponseHandler handler)
                throws WSIFException {
   
  -             //              workflow does not need WSIFResponseHandler!
  -
                Trc.entry(this, input, handler);
                close();
   
  @@ -331,9 +329,6 @@
                return correlId;
        }
   
  -     /**
  -      * workflow specific processAsyncResponse(Object, WSIFMessage, WSIFMessage)
  -      */
        public boolean processAsyncResponse(
                Object responseObject,
                WSIFMessage output,
  @@ -342,13 +337,14 @@
   
                Trc.entry(this, responseObject, output, fault);
   
  +             boolean ok = false;
                try {
   
                        getOperation();
   
                        // set output message name
                        
output.setName(fieldBindingOperation.getBindingOutput().getName());
  -                     receiveJmsMessage(responseObject, output, fault);
  +                     ok = receiveJmsMessage(responseObject, output, fault);
   
                } catch (Exception ex) {
                        Trc.exception(ex);
  @@ -367,9 +363,6 @@
                                ex);
                }
   
  -             // if the fault msg has any parts there must have been a problem
  -             boolean ok = !fault.getPartNames().hasNext();
  -
                Trc.exit(ok);
                return ok;
        }
  @@ -383,7 +376,7 @@
        public void fireAsyncResponse(Object response) throws WSIFException {
                Trc.entry(this, response);
   
  -             //        workflow does not need this yet! use processAsyncResponse
  +             // use processAsyncResponse
                // **NS
                WSIFMessage output = createOutputMessage();
                WSIFMessage fault = createFaultMessage();
  
  
  


Reply via email to