Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 32324 invoked from network); 14 Dec 2008 21:35:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Dec 2008 21:35:41 -0000 Received: (qmail 29955 invoked by uid 500); 14 Dec 2008 21:35:41 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 29911 invoked by uid 500); 14 Dec 2008 21:35:41 -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 29902 invoked by uid 99); 14 Dec 2008 21:35:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Dec 2008 13:35:41 -0800 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 (nike.apache.org: local policy) Received: from [217.77.176.18] (HELO smtp.titaninternet.co.uk) (217.77.176.18) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Dec 2008 21:35:25 +0000 Received: from pfrenchltop ([217.155.110.177]) by smtp.titaninternet.co.uk (Merak 7.5.2) with ASMTP id GNL39351 for ; Sun, 14 Dec 2008 21:35:03 -0000 From: "Paul French" To: References: <60708f4b0812082025g58ea723u181834319125727c@mail.gmail.com> <200812091145.54737.dojeda-list@integra.la> <98F73C468B454BCBBA9296FB591ABA33@pfrenchltop> Subject: RE: thread safe axis2 client stub Date: Sun, 14 Dec 2008 21:35:05 -0000 Message-ID: <4EFD6679EC58479AB89557C3C8334602@pfrenchltop> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_004E_01C95E33.D4C2D090" X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AclaGu7erbEbsGuPTwGCQ0N2jtJIWgAAE5bQABKoFLAAF3UwsADb3rgg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------=_NextPart_000_004E_01C95E33.D4C2D090 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Bump! Anyone? If Axis2 is to be performant then can someone from the Axis2 development team explain the best way to call a web service using Axis2 client stubs? We have a web application where a user interaction initiates a web service call. Are we expected to store one client stub per thread in a thread local or create a pool of client stubs? I would also like to know why a client stub is not thread safe? Thanks. _____ From: Paul French [mailto:paul.french@kirona.com] Sent: 10 December 2008 12:37 To: 'axis-user@ws.apache.org' Subject: RE: thread safe axis2 client stub Can anyone comment on this? It is a major issue for us. Why is the client stub created not thread safe? If it cannot be made thread safe then how can you avoid the huge overhead of instantiating a new client stub per web service call? _____ From: Shehan Simen [mailto:ssimen@itree.com.au] Sent: 10 December 2008 01:24 To: axis-user@ws.apache.org Subject: RE: thread safe axis2 client stub Yes, I am expecting an answer from someone who develop the axis2. It is very inefficient to create a stub for each call. Regards, Shehan From: Paul French [mailto:paul.french@kirona.com] Sent: 2008-12-10 03:29 To: axis-user@ws.apache.org; 'David Ojeda' Subject: RE: thread safe axis2 client stub http://markmail.org/message/iif5rdpgqahk4u5t#query:axis2%20client%20stub%20t hread%20safe+page:2+mid:eenup3ck5ib6fzqq+state:results _____ From: David Ojeda [mailto:dojeda-list@integra.la] Sent: 09 December 2008 16:16 To: axis-user@ws.apache.org Subject: Re: thread safe axis2 client stub I am also interested in this matter. I would like to hear Deepal's opinion, since he was the one who said that it is not thread safe. Paul: You said: > The link below suggests some tricks you can do to make things more > efficient. What are these tricks? What link? Cheers, David On Tuesday 09 December 2008 11:50:31 Paul French wrote: > This seems strange to me that the client stub cannot be made thread safe. > > After reading the below I have changed my client service to create the > client stub on each call to one of my service methods since the client stub > is not thread safe. > > I have no idea how inefficient this is? I have noticed that every time I > create the client stub (for each and every call) I get the message: > > `[INFO] Deploying module: metadataExchange - > file:/C:/downloads/axis2/axis2-1.4.1/lib/mex-1.4.1.jar > > It suggests a lot of work is going on to simply service a single web > service call. > > The link below suggests some tricks you can do to make things more > efficient. What are these tricks? > > Thanks > Paul > > _____ > > From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com] > Sent: 09 December 2008 04:26 > To: axis-user@ws.apache.org > Subject: Re: thread safe axis2 client stub > > > I was not aware of this. If the axis2 design not permits this it is better > not to use it. > > thanks, > Amila. > > > On Mon, Dec 8, 2008 at 10:00 AM, Shehan Simen wrote: > > > Also this link: > > http://markmail.org/message/iif5rdpgqahk4u5t#query:axis2%20client%20stub%20 >t hread%20safe+page:2+mid:eenup3ck5ib6fzqq+state:results > > > > > > From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com] > Sent: 2008-12-08 15:26 > > > To: axis-user@ws.apache.org > Subject: Re: thread safe axis2 client stub > > > > > > I have tested with Axis2 1.4 and it worked fine. can you please send the > mail thread you mentioned? > > thanks, > Amila. > > On Mon, Dec 8, 2008 at 9:48 AM, Shehan Simen wrote: > > Hi Amila, > > Thank you for your response. But I found in some discussion, it is saying > that the client stub is not thread safe. Is this problem fixed now? In > which version I can find it then? > > > > Regards, > > Shehan > > > > From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com] > Sent: 2008-12-08 15:13 > To: axis-user@ws.apache.org > Subject: Re: thread safe axis2 client stub > > > > yes > > thanks, > Amila. > > On Mon, Dec 8, 2008 at 9:31 AM, Shehan Simen wrote: > > Hi, > > I am going to invoke a web service via a client stub generated by axis2. > > I want to have a single instance of the stub across my application. > > So when I initiate the stub (when I call the constructor), I don't like to > call it again throughout my application. > > Is it thread safe? > > > > Regards, > > Shehan > > > > > -- > Amila Suriarachchi > WSO2 Inc. > blog: http://amilachinthaka.blogspot.com/ > > > > > -- > Amila Suriarachchi > WSO2 Inc. > blog: http://amilachinthaka.blogspot.com/ -- David Ojeda __________ NOD32 3677 (20081209) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com __________ NOD32 3680 (20081210) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com ------=_NextPart_000_004E_01C95E33.D4C2D090 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable
Bump! Anyone?
 
If Axis2 is to be performant then can someone = from the=20 Axis2 development team explain the best way to call a web service using = Axis2=20 client stubs? We have a web application where a user interaction = initiates a web=20 service call. Are we expected to store one client stub per thread in a = thread=20 local or create a pool of client stubs?
 
I would also like to know why a client stub = is not=20 thread safe?
 
Thanks.


From: Paul French=20 [mailto:paul.french@kirona.com]
Sent: 10 December 2008=20 12:37
To: 'axis-user@ws.apache.org'
Subject: RE: = thread safe=20 axis2 client stub

Can anyone comment on this? It is a major issue = for=20 us.
 
Why is the client stub created not thread=20 safe?
 
If it cannot be made thread safe then = how can you=20 avoid the huge overhead of instantiating a new client stub per web = service=20 call?


From: Shehan Simen = [mailto:ssimen@itree.com.au]=20
Sent: 10 December 2008 01:24
To:=20 axis-user@ws.apache.org
Subject: RE: thread safe axis2 client=20 stub

Yes,=20 I am expecting an answer from someone who develop the axis2. It is very=20 inefficient to create a stub for each call.

 

Regards,

Shehan

 

From: Paul = French=20 [mailto:paul.french@kirona.com]
Sent: 2008-12-10 = 03:29
To:=20 axis-user@ws.apache.org; 'David Ojeda'
Subject: RE: thread = safe axis2=20 client stub

 

http:/= /markmail.org/message/iif5rdpgqahk4u5t#query:axis2%20client%20stub%20thre= ad%20safe+page:2+mid:eenup3ck5ib6fzqq+state:results

 

 


From: David = Ojeda=20 [mailto:dojeda-list@integra.la]
Sent: 09 December 2008=20 16:16
To: axis-user@ws.apache.org
Subject: Re: = thread safe=20 axis2 client stub

I am also = interested=20 in this matter. I would like to hear Deepal's opinion, since he was the = one who=20 said that it is not thread safe.

Paul:

You=20 said:

> The = link below=20 suggests some tricks you can do to make things = more

> = efficient. What=20 are these tricks?

What=20 link?

Cheers,

David

On Tuesday = 09=20 December 2008 11:50:31 Paul French wrote:

> This = seems=20 strange to me that the client stub cannot be made thread=20 safe.

> 

> After = reading=20 the below I have changed my client service to create = the

> client = stub on=20 each call to one of my service methods since the client=20 stub

> is not = thread=20 safe.

> 

> I have = no idea=20 how inefficient this is? I have noticed that every time = I

> create = the=20 client stub (for each and every call) I get the = message:

> 

> = `[INFO]=20 Deploying module: metadataExchange -

>=20 file:/C:/downloads/axis2/axis2-1.4.1/lib/mex-1.4.1.jar<= /P>

> 

> It = suggests a=20 lot of work is going on to simply service a single = web

> = service=20 call.

> 

> The = link below=20 suggests some tricks you can do to make things = more

> = efficient. What=20 are these tricks?

> 

>=20 Thanks

>=20 Paul

> 

>=20 _____

> 

> From: = Amila=20 Suriarachchi [mailto:amilasuriarachchi@gmail.com]

> Sent: = 09=20 December 2008 04:26

> To:=20 axis-user@ws.apache.org

> = Subject: Re:=20 thread safe axis2 client stub

> 

> 

> I was = not aware=20 of this. If the axis2 design not permits this it is = better

> not to = use=20 it.

> 

>=20 thanks,

>=20 Amila.

> 

> 

> On = Mon, Dec 8,=20 2008 at 10:00 AM, Shehan Simen <ssimen@itree.com.au>=20 wrote:

> 

> 

> Also = this=20 link:

> 

>=20 http://markmail.org/message/iif5rdpgqahk4u5t#query:axis2%20client%20stub%= 20

>t=20 hread%20safe+page:2+mid:eenup3ck5ib6fzqq+state:results<= /P>

> 

> 

> 

> 

> 

> From: = Amila=20 Suriarachchi [mailto:amilasuriarachchi@gmail.com]

> Sent: = 2008-12-08=20 15:26

> 

> 

> To:=20 axis-user@ws.apache.org

> = Subject: Re:=20 thread safe axis2 client stub

> 

> 

> 

> 

> 

> I have = tested=20 with Axis2 1.4 and it worked fine. can you please send = the

> mail = thread you=20 mentioned?

> 

>=20 thanks,

>=20 Amila.

> 

> On = Mon, Dec 8,=20 2008 at 9:48 AM, Shehan Simen <ssimen@itree.com.au>=20 wrote:

> 

> Hi=20 Amila,

> 

> Thank = you for=20 your response. But I found in some discussion, it is=20 saying

> that = the client=20 stub is not thread safe. Is this problem fixed now? = In

> which = version I=20 can find it then?

> 

> 

> 

>=20 Regards,

> 

>=20 Shehan

> 

> 

> 

> From: = Amila=20 Suriarachchi [mailto:amilasuriarachchi@gmail.com]

> Sent: = 2008-12-08=20 15:13

> To:=20 axis-user@ws.apache.org

> = Subject: Re:=20 thread safe axis2 client stub

> 

> 

> 

>=20 yes

> 

>=20 thanks,

>=20 Amila.

> 

> On = Mon, Dec 8,=20 2008 at 9:31 AM, Shehan Simen <ssimen@itree.com.au>=20 wrote:

> 

>=20 Hi,

> 

> I am = going to=20 invoke a web service via a client stub generated by = axis2.

> 

> I want = to have a=20 single instance of the stub across my application.

> 

> So = when I=20 initiate the stub (when I call the constructor), I don't like=20 to

> call = it again=20 throughout my application.

> 

> Is it = thread=20 safe?

> 

> 

> 

>=20 Regards,

> 

>=20 Shehan

> 

> 

> 

> 

>=20 --

> Amila=20 Suriarachchi

> WSO2=20 Inc.

> blog:=20 http://amilachinthaka.blogspot.com/

> 

> 

> 

> 

>=20 --

> Amila=20 Suriarachchi

> WSO2=20 Inc.

> blog:=20 http://amilachinthaka.blogspot.com/

--=20

David=20 Ojeda



__________=20 NOD32 3677 (20081209) Information __________

This message was = checked by=20 NOD32 antivirus system.
http://www.eset.com

__________=20 NOD32 3680 (20081210) Information __________

This message was = checked by=20 NOD32 antivirus system.
http://www.eset.com
------=_NextPart_000_004E_01C95E33.D4C2D090--