axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davidills...@apache.org
Subject svn commit: r508455 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AddressingBasedDispatcher.java
Date Fri, 16 Feb 2007 15:43:57 GMT
Author: davidillsley
Date: Fri Feb 16 07:43:56 2007
New Revision: 508455

URL: http://svn.apache.org/viewvc?view=rev&rev=508455
Log:
Add trace and allow action based dispatch when there is an
unrecognised RelatesTo

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AddressingBasedDispatcher.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AddressingBasedDispatcher.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AddressingBasedDispatcher.java?view=diff&rev=508455&r1=508454&r2=508455
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AddressingBasedDispatcher.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AddressingBasedDispatcher.java
Fri Feb 16 07:43:56 2007
@@ -66,7 +66,7 @@
     }
 
     public AxisService findService(MessageContext messageContext) throws AxisFault {
-EndpointReference toEPR = messageContext.getTo();
+    	EndpointReference toEPR = messageContext.getTo();
         AxisService service = null;
 
         if (toEPR != null) {
@@ -129,7 +129,6 @@
      * @throws org.apache.axis2.AxisFault
      */
     public InvocationResponse invoke(MessageContext msgctx) throws AxisFault {
-
         // first check we can dispatch using the relates to
         if (msgctx.getRelatesTo() != null) {
             String relatesTo = msgctx.getRelatesTo().getValue();
@@ -152,12 +151,14 @@
                     msgctx.getAxisOperation().registerMessageContext(msgctx, operationContext);
                     msgctx.setServiceGroupContextId(
                             ((ServiceGroupContext) msgctx.getServiceContext().getParent()).getId());
+                    
+                    if(isDebugEnabled){
+                        log.debug(msgctx.getLogIDString()+" Dispatched successfully on the
RelatesTo. operation="+operationContext.getAxisOperation());
+                    }
+                    return InvocationResponse.CONTINUE;
                 }
             }
-
-            return InvocationResponse.CONTINUE;
         }
-
         return super.invoke(msgctx);
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message