You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ng...@apache.org on 2007/07/16 17:37:14 UTC

svn commit: r556650 - in /webservices/axis2/trunk/java/modules: jaxws/src/org/apache/axis2/jaxws/core/controller/AxisInvocationController.java metadata/src/org/apache/axis2/jaxws/i18n/resource.properties

Author: ngallardo
Date: Mon Jul 16 08:37:12 2007
New Revision: 556650

URL: http://svn.apache.org/viewvc?view=rev&rev=556650
Log:
AXIS2-2895

Don't allow the config of a separate listener for one way invokes.

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/AxisInvocationController.java
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/AxisInvocationController.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/AxisInvocationController.java?view=diff&rev=556650&r1=556649&r2=556650
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/AxisInvocationController.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/AxisInvocationController.java Mon Jul 16 08:37:12 2007
@@ -157,6 +157,13 @@
     * @see org.apache.axis2.jaxws.core.controller.InvocationController#invokeOneWay(org.apache.axis2.jaxws.core.InvocationContext)
     */
     public void doInvokeOneWay(MessageContext request) throws WebServiceException {
+        // Make sure that a one-way invocation does not attempt to use a separate channel
+        // for the response.
+        Boolean useAsyncMep = (Boolean) request.getProperty(Constants.USE_ASYNC_MEP);
+        if (useAsyncMep != null && useAsyncMep.booleanValue()) {
+            throw ExceptionFactory.makeWebServiceException(Messages.getMessage("onewayAsync"));
+        }
+        
         // We need the qname of the operation being invoked to know which 
         // AxisOperation the OperationClient should be based on.
         // Note that the OperationDesc is only set through use of the Proxy. Dispatch

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties?view=diff&rev=556650&r1=556649&r2=556650
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties (original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties Mon Jul 16 08:37:12 2007
@@ -179,3 +179,4 @@
 handlerChainNS=The @HandlerChain configuration file {0} in the class {1} could not be loaded.
 hcConfigLoadFail=The @HandlerChain configuration file {0} in the class {1} could not be loaded due to the following error: {2}
 serverSideAsync=The server-side SEI {0} contains the asynchronous method {1}. Asynchronous methods are not allowed for server-side artifacts.
+onewayAsync=The async listener property was set.  A one way invocation cannot be performed using an async response channel.
\ No newline at end of file



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