Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 30140 invoked from network); 28 Feb 2007 14:03:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Feb 2007 14:03:51 -0000 Received: (qmail 71747 invoked by uid 500); 28 Feb 2007 14:03:52 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 71631 invoked by uid 500); 28 Feb 2007 14:03:52 -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 71615 invoked by uid 99); 28 Feb 2007 14:03:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Feb 2007 06:03:52 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of nagy@watson.ibm.com designates 129.34.20.6 as permitted sender) Received: from [129.34.20.6] (HELO igw2.watson.ibm.com) (129.34.20.6) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Feb 2007 06:03:40 -0800 Received: from mailhub3.watson.ibm.com (mailhub3.watson.ibm.com [129.34.20.45]) by igw2.watson.ibm.com (8.13.1/8.13.1/8.13.1-2005-04-25 igw) with ESMTP id l1SE4Zrh014171 for ; Wed, 28 Feb 2007 09:04:35 -0500 Received: from mailhub3.watson.ibm.com (localhost.localdomain [127.0.0.1]) by mailhub3.watson.ibm.com (8.13.1/8.13.1/8.13.1-01-23-2007-Delivery) with ESMTP id l1SE3I0N020823 for ; Wed, 28 Feb 2007 09:03:18 -0500 Received: from wecm-9-67-32-20.wecm.ibm.com (wecm-9-67-32-20.wecm.ibm.com [9.67.32.20]) by mailhub3.watson.ibm.com (8.13.1/8.13.1/8.13.1-01-23-2007-IMSS) with ESMTP id l1SE3HUv020815 for ; Wed, 28 Feb 2007 09:03:18 -0500 Subject: Re: [AXIS2] Holding response in HTTPWorker From: Bill Nagy To: axis-dev@ws.apache.org In-Reply-To: References: Content-Type: text/plain Date: Wed, 28 Feb 2007 06:05:44 -0800 Message-Id: <1172671544.14412.25.camel@scylla.watson.ibm.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Keith, The relevant commits are: Revision 489259 - (view) (download) (annotate) - [select for diffs] Modified Thu Dec 21 03:39:21 2006 UTC (2 months, 1 week ago) by chamikara File length: 13755 byte(s) Diff to previous 487227 (colored) Added a mechanism to give the current state of the RequestResponseTransport. This could be used by RM in resending of messages. Message will be allowed to be resent only if the RequestResponseTranspor object is in the correct state. Added a mechanism to allow somebody to set an custom transport response code. For e.g. Sandesha2 has a requirement to return HTTP 408, but there was not way do do this in Axis2. Added a boolean property which should be used by transports to decide weather or not a certain request thread should be blocked (by calling RequestResponseTransport.awaitResponse () ) object. Simply doing this based on wehater or not the request has been is paused is not enough in some cases. Please see javadocs for more details. and Revision 481505 - (view) (download) (annotate) - [select for diffs] Modified Sat Dec 2 05:38:19 2006 UTC (2 months, 3 weeks ago) by nagy File length: 13301 byte(s) Diff to previous 475355 (colored) Extended RequestResponseTransport to allow the transport to block after control is returned (e.g. if the message is paused) and then resume once a response is available. This will enable RM to be used for IN-OUT MEPs over a request/response transport. In short, it's required for RM to support a request/response transport in a request/response fashion (i.e. not as a one-way connection.) Since you can't really use RM with those other verbs, I don't really have another use case right now where it would make sense to replicate that code. -Bill On Wed, 2007-02-28 at 11:40 +0530, keith chapman wrote: > Hi, > > I was working on adding HTTP methods PUT and DELETE to HTTPWorker so > that we can get that support. This code appears at the end of handling > HTTP POST. > > Boolean holdResponse = (Boolean) msgContext.getProperty > (RequestResponseTransport.HOLD_RESPONSE); > > if (pi.equals(InvocationResponse.SUSPEND) || > (holdResponse != null && Boolean.TRUE.equals(holdResponse))) { > try { > > ((RequestResponseTransport)msgContext.getProperty( RequestResponseTransport.TRANSPORT_CONTROL)).awaitResponse(); > } > catch (InterruptedException e) { > throw new IOException("We were interrupted, so this > may not function correctly:"+ e.getMessage()); > } > } > > Whats the reason for having this in the POST case? It does not appear > in the GET. Was wondering whether its needed for PUT too. > > Does anybody know the reason for this code? > > Thanks, > Keith. > > -- > Keith Chapman > WSO2 Inc. > Oxygen for Web Services Developers. > http://wso2.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org