Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 20575 invoked from network); 13 Feb 2007 20:14:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2007 20:14:11 -0000 Received: (qmail 86641 invoked by uid 500); 13 Feb 2007 20:14:07 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 86622 invoked by uid 500); 13 Feb 2007 20:14:07 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 86607 invoked by uid 99); 13 Feb 2007 20:14:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Feb 2007 12:14:07 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [129.79.246.27] (HELO whale.cs.indiana.edu) (129.79.246.27) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Feb 2007 12:13:56 -0800 Received: from [127.0.0.1] (school.cs.indiana.edu [129.79.246.25]) by whale.cs.indiana.edu (8.13.6/8.13.6/IUCS_2.80) with ESMTP id l1DKDYrb012964; Tue, 13 Feb 2007 15:13:34 -0500 (EST) Message-ID: <45D21B36.6010601@cs.indiana.edu> Date: Tue, 13 Feb 2007 15:10:30 -0500 From: Aleksander Slominski User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: synapse-dev@ws.apache.org CC: axis-user@ws.apache.org Subject: Re: asynchronous messaging question References: <1171361480.4829.11.camel@eskdale.ncl.ac.uk> <88f5d710702131155t48291625h42a7657974d31d79@mail.gmail.com> In-Reply-To: <88f5d710702131155t48291625h42a7657974d31d79@mail.gmail.com> X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Paul Fremantle wrote: > Michele > > We (the Synapse team) have written a pure non-blocking HTTP transport > for Axis2. Its currently in the Synapse repository, but we will check > it into the core Axis2 SVN when its stable. > > However, I wanted to clear up the asynchronous model. This isn't a > clear area by any means! > > The current Axis2 with Addressing is actually already asynchronous. > What happens is that if the replyTo address is a real HTTP URL > (useSeparateListener), then the client will start up a mini HTTP > server. The service will respond instantly with an HTTP 202 OK > (accepted message but not yet processed), and the HTTP connection will > be closed. When the response is ready, the server will open a new > connection to the client's HTTP server and pass the response over > that. > > The reason we wrote the non-blocking transport is that we wanted to be > asynchronous even in the case where WS-Addressing ISN'T being used. In > other words, the client has an open socket to the server, but we > didn't want to block a thread waiting for the socket. hi Paul, but that puts very high burden on server and TCP stack (assuming that you modified kernel to allow more than usual 1000 socket per process) and it is not robust in case when client needs to wait for response longer than few minutes (i have example applications that use WSA to wait for response for hours or days). so what is the advantage of not using WSA? > > We looked at both Mina and AsyncWeb but AsyncWeb doesn't support a > client model, so we based our code on the Jakarta HTTPCore project > which also has NIO support. > > BTW Another truly asynchronous protocol we support is SMTP. SMTP is exactly like WSA+SOAP+HTTP with non-anonymous ReplyTo - and as history shows that seems to work very well ... thanks, alek > > Paul > > On 2/13/07, Michele Mazzucco wrote: >> Hi all, >> >> the addressing module allows for asynchronous messaging. However the >> used transport mechanisms are synchronous (at least tcp and http). Since >> alternatives exist (e.g. [1, 2]), is there any future plan to take >> advantage of fully asynchronous computation? >> >> >> Thanks, >> Michele >> >> >> [1] http://mina.apache.org/index.html >> [2] http://docs.safehaus.org/display/ASYNCWEB/Home >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >> For additional commands, e-mail: axis-user-help@ws.apache.org >> >> > > -- The best way to predict the future is to invent it - Alan Kay --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org