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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to