Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 10628 invoked from network); 17 Sep 2009 06:11:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Sep 2009 06:11:37 -0000 Received: (qmail 64472 invoked by uid 500); 17 Sep 2009 06:11:34 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 64423 invoked by uid 500); 17 Sep 2009 06:11:34 -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 64414 invoked by uid 99); 17 Sep 2009 06:11:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Sep 2009 06:11:34 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of amilasuriarachchi@gmail.com designates 74.125.92.148 as permitted sender) Received: from [74.125.92.148] (HELO qw-out-1920.google.com) (74.125.92.148) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Sep 2009 06:11:26 +0000 Received: by qw-out-1920.google.com with SMTP id 4so2628200qwk.28 for ; Wed, 16 Sep 2009 23:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=PGR3R8IDo4tlaEw/PhPaTG5FUOolaWBbc8Oj5ZEG+tA=; b=HaIYeWIpWeSSFZ3xNV27aPLEUoD4rn27o8wt+QO8h5s1PmtL2ueOZteZE1srWA3pSz TM1vUmaBBkPA62XtoOrGKBzkzvHak4lwQInvZAySPxlu8gen4HL30XskGigZRBf3i3QH 9jW0i7wuZVamnYfZ3hzUOU7CH5Ab4HLWEl648= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=DWL5lGh9YJTyJWn0wMsRG4xshq0hRwvq8mXR37jfMdaE9CawIjxnheKDqaTILK55rI ewr5A06eNRNrn658eUnohgY6wV6N+sB2P1C206WU+8q1qpyN1eXot5K57jlacuBjxh74 ZvPMp11+xV8V8HEPlEx5Rusl1ZV/sNLDYpLXs= MIME-Version: 1.0 Received: by 10.229.54.143 with SMTP id q15mr2949130qcg.74.1253167865312; Wed, 16 Sep 2009 23:11:05 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Sep 2009 11:41:05 +0530 Message-ID: <60708f4b0909162311o16cd72c9nbe18d7950025c7cf@mail.gmail.com> Subject: Re: Creating a async web sercice From: Amila Suriarachchi To: axis-user@ws.apache.org Content-Type: multipart/alternative; boundary=00151773e2d674b7d10473bfe1bc X-Virus-Checked: Checked by ClamAV on apache.org --00151773e2d674b7d10473bfe1bc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2009/9/16 H=E5kon Sagehaug > Hi > > > I wanted to try out to make a web service async, does anyone know of a > cookbook how to do that? I found this link[1] explaning how I want my > service to work. is it the AsyncMessageReceiver from the integration mod= ule > in axis2 svn I should use? Basically I need som help and guide how to ena= ble > async behavior on the server side, I know how to do it on the client side= , > for getting a non-blocking using two transport channels. > > any tips or hint on this topic? > you need to set this parameter messageReceiver.invokeOnSeparateThread to true in your service. ie. true if the request contains a replyTo header service invocation happens in a separate thread. thanks, Amila. > cheers, H=E5kon > > > [1] http://www.ibm.com/developerworks/webservices/library/ws-axis2/ > > -- > H=E5kon Sagehaug, Scientific Programmer > Parallab, Bergen Center for Computational Science (BCCS) > UNIFOB AS (University of Bergen Research Company) > --=20 Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ --00151773e2d674b7d10473bfe1bc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

2009/9/16 H=E5kon Sagehaug <Hakon.Sagehaug@bccs.= uib.no>
Hi


I wanted to try out to make a web service async, does anyone = know of a cookbook how to do that? I found this link[1] explaning how I wan= t my service to work. is it the AsyncMessageReceiver=A0 from the integratio= n module in axis2 svn I should use? Basically I need som help and guide how= to enable async behavior on the server side, I know how to do it on the cl= ient side, for getting a non-blocking using two transport channels.

any tips or hint on this topic?

you need to s= et this parameter messageReceiver.invokeOnSeparateThread to true in your se= rvice.

ie. <parameter name=3D"messageReceiver.invokeOnSepara= teThread">true</parameter>

if the request contains a replyTo header service invocation happens in = a separate thread.

thanks,
Amila.



cheers, H=E5kon


[1] http://www.ibm.com/de= veloperworks/webservices/library/ws-axis2/

--
H=E5kon Sagehaug, Scientific Programmer
Parallab, Bergen Cent= er for Computational Science (BCCS)
UNIFOB AS (University of Bergen Rese= arch Company)



--
Amila Suriarachc= hi
WSO2 Inc.
blog: ht= tp://amilachinthaka.blogspot.com/
--00151773e2d674b7d10473bfe1bc--