Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 80372 invoked from network); 24 Feb 2006 09:55:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Feb 2006 09:55:25 -0000 Received: (qmail 10478 invoked by uid 500); 24 Feb 2006 09:55:02 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 10404 invoked by uid 500); 24 Feb 2006 09:55:02 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 10355 invoked by uid 99); 24 Feb 2006 09:55:02 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2006 01:55:02 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id E3928DF for ; Fri, 24 Feb 2006 10:54:40 +0100 (CET) Message-ID: <1469672060.1140774880930.JavaMail.jira@ajax.apache.org> Date: Fri, 24 Feb 2006 10:54:40 +0100 (CET) From: "Eran Chinthaka (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-462) AbstractInOutAsyncMessageReceiver : in method invokeBusinessLogic, wrong parameter for engine.send(...) In-Reply-To: <912911910.1140697360140.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-462?page=3Dall ] =20 Eran Chinthaka resolved AXIS2-462: ---------------------------------- Fix Version: 0.95 Resolution: Fixed Fixed. Thanks for reporting this. > AbstractInOutAsyncMessageReceiver : in method invokeBusinessLogic, wrong = parameter for engine.send(...) > -------------------------------------------------------------------------= ------------------------------ > > Key: AXIS2-462 > URL: http://issues.apache.org/jira/browse/AXIS2-462 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Components: core > Versions: 0.94, 0.93 > Environment: All operating systems/plateforms > Reporter: Jean-S=C3=A9bastien Ricard > Priority: Blocker > Fix For: 0.95 > > In the invokeBusinessLogic method, and particulary in the handleResult() = method, when calling the engine.send(..) method, the incoming MessageContex= t is send (messageCtx) rather than result one (result). > Here after the fixed source code : > public abstract class AbstractInOutAsyncMessageReceiver extends AbstractM= essageReceiver { > protected Log log =3D LogFactory.getLog(getClass()); > public abstract void invokeBusinessLogic(MessageContext inMessage, Me= ssageContext outMessage, > ServerCallback callback) > throws AxisFault; > public final void receive(final MessageContext messageCtx) throws Axi= sFault { > final ServerCallback callback =3D new ServerCallback() { > public void handleResult(MessageContext result) throws AxisFa= ult { > AxisEngine engine =3D > new AxisEngine(messageCtx.getOperationContext().g= etServiceContext() > .getConfigurationContext()); > =20 > // BUG > //engine.send(messageCtx); > // FIXED > engine.send(result); > =20 > } > public void handleFault(AxisFault fault) throws AxisFault { > AxisEngine engine =3D > new AxisEngine(messageCtx.getOperationContext().g= etServiceContext() > .getConfigurationContext()); > MessageContext faultContext =3D engine.createFaultMessage= Context(messageCtx, fault); > engine.sendFault(faultContext); > } > }; > Runnable theadedTask =3D new Runnable() { > public void run() { > try { > MessageContext newmsgCtx =3D Utils.createOutMessageCo= ntext(messageCtx); > newmsgCtx.getOperationContext().addMessageContext(new= msgCtx); > invokeBusinessLogic(messageCtx, newmsgCtx, callback); > } catch (AxisFault e) { > log.error(e); > } > } > }; > messageCtx.getConfigurationContext().getThreadPool().execute(thea= dedTask); > } > } --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira