Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 203 invoked from network); 23 May 2008 16:14:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 May 2008 16:14:32 -0000 Received: (qmail 38883 invoked by uid 500); 23 May 2008 16:14:25 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 38865 invoked by uid 500); 23 May 2008 16:14:25 -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 38854 invoked by uid 99); 23 May 2008 16:14:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2008 09:14:25 -0700 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=HTML_MESSAGE,SPF_SOFTFAIL,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of midon@intalio.com does not designate 74.125.46.156 as permitted sender) Received: from [74.125.46.156] (HELO yw-out-1718.google.com) (74.125.46.156) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2008 16:13:37 +0000 Received: by yw-out-1718.google.com with SMTP id 6so383093ywa.88 for ; Fri, 23 May 2008 09:13:43 -0700 (PDT) Received: by 10.142.186.9 with SMTP id j9mr669664wff.284.1211559222605; Fri, 23 May 2008 09:13:42 -0700 (PDT) Received: by 10.142.12.4 with HTTP; Fri, 23 May 2008 09:13:42 -0700 (PDT) Message-ID: Date: Fri, 23 May 2008 09:13:42 -0700 From: "Alexis Midon" To: axis-user@ws.apache.org Subject: Re: is ServiceClient thread-safe? In-Reply-To: <17427917.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10503_7985997.1211559222594" References: <17427917.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_10503_7985997.1211559222594 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline I don't know what you mean exactly. Nevertheless: client = new ServiceClient(new ConfigurationContext(_axisConfig), null); http://ws.apache.org/axis2/1_3/api/org/apache/axis2/client/ServiceClient.html On Fri, May 23, 2008 at 8:30 AM, sultanat wrote: > > Can you send a sample of your SeriviceClient please > > Alexis Midon-2 wrote: > > > > Thanks for the clarification! > > > > On Fri, May 23, 2008 at 1:32 AM, Michele Mazzucco < > > Michele.Mazzucco@ncl.ac.uk> wrote: > > > >> ServiceClient is not thread safe. I suggest you to share the > >> configuration > >> context among several ServiceClient instances instead, where each > >> ServiceClient is private to each thread. Instantiating ServiceClient > >> objects > >> is not very expensive -- ConfigurationContext objects are. > >> > >> Michele > >> > >> > >> On 23 May 2008, at 00:15, 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 > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/is-ServiceClient-thread-safe--tp17415505p17427917.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > ------=_Part_10503_7985997.1211559222594 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline I don't know what you mean exactly.
Nevertheless:

client = new ServiceClient(new ConfigurationContext(_axisConfig), null);

http://ws.apache.org/axis2/1_3/api/org/apache/axis2/client/ServiceClient.html


On Fri, May 23, 2008 at 8:30 AM, sultanat <asultanuddin@yahoo.com> wrote:

Can you send a sample of your SeriviceClient please

Alexis Midon-2 wrote:
>
> Thanks for the clarification!
>
> On Fri, May 23, 2008 at 1:32 AM, Michele Mazzucco <
> Michele.Mazzucco@ncl.ac.uk> wrote:
>
>> ServiceClient is not thread safe. I suggest you to share the
>> configuration
>> context among several ServiceClient instances instead, where each
>> ServiceClient is private to each thread. Instantiating ServiceClient
>> objects
>> is not very expensive -- ConfigurationContext objects are.
>>
>> Michele
>>
>>
>> On 23 May 2008, at 00:15, 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
>>
>>
>
>

--
View this message in context: http://www.nabble.com/is-ServiceClient-thread-safe--tp17415505p17427917.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


------=_Part_10503_7985997.1211559222594--