Hi Ruwan,

On Tue, Jan 4, 2011 at 8:50 PM, Ruwan Linton <[email protected]> wrote:

> First of all you need to post to the [email protected] in the
> future.
>
> Regarding the performance issues, can you please be concrete about the
> performance issues?
>
> Also it should be OK to share the same stub instance.
>

I don't think so. Axis2 ServiceClient API (which I believe is used within
generated stubs) is not meant to be shared by multiple threads. The javadocs
clearly states: "Note that these instances are not intended to be
thread-safe".

However it is ok to reuse the same stub for multiple invocations by the same
thread. In that case we should call cleanupTransports method after each
invocation.

Thanks,
Hiranya


>
> Thanks,
> Ruwan
>
>
> On Tue, Jan 4, 2011 at 7:28 PM, suril <[email protected]> wrote:
>
>>
>> I am looking for some help with a performance issue that we are running
>> into
>> with Axis2.
>>
>> We have a library that creates a pool of connections to a server. The
>> connection pool is created using Apache Commons Pool. We are creating an
>> Axis2 stub instance in the library and using that for the SOAP
>> communication.
>>
>> We are running into significant performance problems with the Axis2 stub
>> object invocation under load.
>>
>> I had 2 questions on this:
>> 1) Can we re-use the same Axis2 stub instance across threads in our
>> library?
>> We are using Axis2 1.4 -- we can move to a higher version if needed
>> 2) If this is not possible, then are there any suggestions/tips to
>> optimize
>> the performance and reduce the time taken for the Axis2 stub object
>> creation?
>>
>> Thanks for your help
>> --
>> View this message in context:
>> http://old.nabble.com/Axis2-stub-creation-performance-issue-tp30586755p30586755.html
>> Sent from the Axis - Dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
> --
> Ruwan Linton
> Software Architect & Product Manager
> WSO2 Inc.; http://wso2.org
>
> Lean . Enterprise . Middleware
>
> phone: +1 408 754 7388 ext 51789
> email: [email protected]; cell: +94 77 341 3097
> blog: http://blog.ruwan.org
> linkedin: http://www.linkedin.com/in/ruwanlinton
> google: http://www.google.com/profiles/ruwan.linton
> tweet: http://twitter.com/ruwanlinton
>



-- 
Hiranya Jayathilaka
Senior Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: [email protected];  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com

Reply via email to