ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r683503 - in /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2: receivers/AbstractMessageReceiver.java util/JavaUtils.java
Date Thu, 07 Aug 2008 04:35:24 GMT
Author: amilas
Date: Wed Aug  6 21:35:23 2008
New Revision: 683503

URL: http://svn.apache.org/viewvc?rev=683503&view=rev
Log:
set the DO_ASYNC parameter correctly. we need to check the value

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/receivers/AbstractMessageReceiver.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/JavaUtils.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/receivers/AbstractMessageReceiver.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/receivers/AbstractMessageReceiver.java?rev=683503&r1=683502&r2=683503&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/receivers/AbstractMessageReceiver.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/receivers/AbstractMessageReceiver.java
Wed Aug  6 21:35:23 2008
@@ -88,8 +88,10 @@
      */
     public void receive(final MessageContext messageCtx) throws AxisFault {
     	if (messageCtx.isPropertyTrue(DO_ASYNC)
-				|| JavaUtils.isTrue(messageCtx.getParameter(DO_ASYNC))) {
-			String mep = messageCtx.getAxisOperation()
+				|| ((messageCtx.getParameter(DO_ASYNC) != null) &&
+                    JavaUtils.isTrueExplicitly(messageCtx.getParameter(DO_ASYNC).getValue())))
{
+
+            String mep = messageCtx.getAxisOperation()
 					.getMessageExchangePattern();
 			EndpointReference replyTo = messageCtx.getReplyTo();
 			// In order to invoke the service in the ASYNC mode, the request

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/JavaUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/JavaUtils.java?rev=683503&r1=683502&r2=683503&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/JavaUtils.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/JavaUtils.java Wed
Aug  6 21:35:23 2008
@@ -273,7 +273,7 @@
         if (value instanceof String) {
             return isTrueExplicitly((String) value);
         }
-        return true;
+        return defaultVal;
     }
 
     public static boolean isTrueExplicitly(Object value) {



Mime
View raw message