Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 9535 invoked from network); 6 Aug 2009 14:39:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Aug 2009 14:39:49 -0000 Received: (qmail 6487 invoked by uid 500); 6 Aug 2009 14:39:54 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 6438 invoked by uid 500); 6 Aug 2009 14:39:54 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 6409 invoked by uid 99); 6 Aug 2009 14:39:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2009 14:39:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of MEVENO@generali.fr designates 193.57.141.200 as permitted sender) Received: from [193.57.141.200] (HELO malesherbes.generali.fr) (193.57.141.200) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2009 14:39:45 +0000 X-SBRS: None X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.43,333,1246831200"; d="scan'208";a="428235107" Received: from dsi-w196mes0.groupe.generali.fr ([10.56.1.30]) by malesherbes-inside.groupe.generali.fr with ESMTP; 06 Aug 2009 16:39:23 +0200 Received: from EVS1.Groupe.Generali.fr ([10.6.1.16]) by DSI-W196MES0.Groupe.Generali.fr with Microsoft SMTPSVC(6.0.3790.3959); Thu, 6 Aug 2009 16:39:23 +0200 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Asynchronous Invocation and connection keep alive on the TCP level Date: Thu, 6 Aug 2009 16:39:21 +0200 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Asynchronous Invocation and connection keep alive on the TCP level Thread-Index: AcoWntQiYYZFDM5eRde+PcnlFdP2VgABKuhQ References: <24835434.post@talk.nabble.com> From: "EVENO Manuel" To: X-OriginalArrivalTime: 06 Aug 2009 14:39:23.0215 (UTC) FILETIME=[B09EADF0:01CA16A3] X-Virus-Checked: Checked by ClamAV on apache.org Do you have example or documentation of a "decoupled response endpoint" or the callbacks-tyle mecanism you wrote about ? I can find anything on the CXF Wiki ... Manuel -----Message d'origine----- De : Eoghan Glynn [mailto:eoglynn@gmail.com]=20 Envoy=E9 : jeudi 6 ao=FBt 2009 16:04 =C0 : users@cxf.apache.org Objet : Re: Asynchronous Invocation and connection keep alive on the TCP = level Andrew is correct. JAX-WS async is purely a convenience mechanism to allow the application = avoid creating a separate thread to manage the invocation direction. What you really need to avoid is tying up the client->server connection = for the duration of the long-running invocation. This could be achieved via WS-Addressing with a decoupled response = endpoint , so that the client->server may be torn down once the request = has been transmitted and the response when ready is sent over a separate server->client connection. Though it sounds like WS-A is not an option=20 server->for you. Otherwise you can model a polling-style (as suggested by Glen) or = callback-style of interaction in the WSDL. Cheers, Eoghan 2009/8/6 Andrew Clegg > 2009/8/5 conficio : > > > My question is: Does the asynchronous Web service some active=20 > > polling > across > > the TCP connection to keep it alive? Is that the solution I'm=20 > > looking > for, > > Asynchronous invocation? > > I'm happy to be corrected if wrong, but I believe the actual TCP=20 > conversation is basically the same for CXF sync/async service=20 > invocation, it just *appears* to work asynchronously from the POV of=20 > the client code. > > For really long-running jobs you are probably better off doing proper=20 > server-side asynchronous services with persistent state, like this: > > http://www.jroller.com/gmazza/entry/creating_service_side_asynchronous > _web > > Andrew. > > -- > :: http://biotext.org.uk/ :: >