axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexis Midon" <mi...@intalio.com>
Subject Re: is ServiceClient thread-safe?
Date Thu, 22 May 2008 23:54:51 GMT
well, actually I was trying to get ride of the threadLocal ;)
maybe I will stick with it.
Thanks for your answer!

nevertheless, can we get a rock-solid answer about this?

On Thu, May 22, 2008 at 4:35 PM, Will Briggs <wrbriggs@gmail.com> wrote:

> Is it critical to share it amongst several threads, or are you just looking
> to minimize the number of clients you instantiate?  Last I heard,
> ServiceClient was not thread-safe.  However, you can implement a Singleton
> pattern using ThreadLocal so that everything running within the same thread
> can share the service client.  This is pretty effective if you only have a
> few threads, but doesn't save you much if you have many.
>
> -Will
>
>
> Alexis Midon wrote:
>
>> Hi all,
>>
>> I'd like to know if I can share one ServiceClient instance among several
>> threads.
>>
>> Thanks,
>>
>> Alexis
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Mime
View raw message