Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 27577 invoked from network); 22 Jan 2011 07:02:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jan 2011 07:02:14 -0000 Received: (qmail 10001 invoked by uid 500); 22 Jan 2011 07:02:13 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 9493 invoked by uid 500); 22 Jan 2011 07:02:10 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 9485 invoked by uid 99); 22 Jan 2011 07:02:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Jan 2011 07:02:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Jan 2011 07:02:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0M71jTq027412 for ; Sat, 22 Jan 2011 07:01:45 GMT Message-ID: <1225479.123081295679705328.JavaMail.jira@thor> Date: Sat, 22 Jan 2011 02:01:45 -0500 (EST) From: "Isuru Eranga Suriarachchi (JIRA)" To: java-dev@axis.apache.org Subject: [jira] Commented: (AXIS2-4340) JAX-WS handler's handleClose called before request processing by the endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-4340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985063#action_12985063 ] Isuru Eranga Suriarachchi commented on AXIS2-4340: -------------------------------------------------- I think the spec doesn't specifically mention anything about closing a handler for a one-way operation. Basically the main intention of closing a handler is to clear any resources which are allocated for the current invocation. So in the one-way case, after invoking a handler, it doesn't make any difference whether we close the handler before or after executing the service logic. Therefore I think this is not an issue. Thanks, ~Isuru > JAX-WS handler's handleClose called before request processing by the endpoint > ----------------------------------------------------------------------------- > > Key: AXIS2-4340 > URL: https://issues.apache.org/jira/browse/AXIS2-4340 > Project: Axis2 > Issue Type: Bug > Components: jaxws > Affects Versions: 1.4 > Environment: All Platforms and operating systems > Reporter: Amit Modi > Assignee: Isuru Eranga Suriarachchi > > The issue is related to the JAX-WS handlers for one-way request messages. The handleClose method gets called before the service endpoint processes the request. Shouldn't handleClose be called after the request is processed by the service enpoint? The conclusion of a MEP will be only when message is received by the service endpoint and as per the spec handleClose should be called after conclusion of MEP (as below). > As per the spec > A handler's close method is called at the conclusion of a message exchange pattern (MEP). It is called 30 > just prior to the binding dispatching the final message, fault or exception of the MEP and may be used to 31 > clean up per-MEP resources allocated by a handler. The close method is only called on handlers that were 32 > previously invoked via either handleMessage or handleFault 33 > } Conformance (Invoking close): At the conclusion of an MEP, an implementation MUST call the close 34 > method of each handler that was previously invoked during that MEP via either handleMessage or handle- 35 > Fault. 36 > } Conformance (Order of close invocations): Handlers are invoked in the reverse order that they appear 37 > in the handler chain. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org