ramesh Gopal wrote:
Hello,

When Axis2C server is brought up on a port, we say that its a single process.
This process is capable of spawning multiple threads.

If my application were written in a way that there is some global data segment, 
theres every chance that the threads may share the global segment and 
over-write thereby resulting in a crash or some other drastic problem.


ie .... even if Axis2C is thread safe, because my application doesnt take care 
of multi-threaded mode (its more a process based than thread based), the 
problem will percolate into Axis2C and cause the server to crash.
You mean to say your service code is not thread safe?.
if a thread want to access service object it has to first get the lock for the service. So there could be performance issue with stand alone Axis2/C server. Use Axis2/C with apache module.
Thanks,
Damitha

Rgds,
Ramesh.


--- On Wed, 7/7/10, Samisa Abeysinghe <[email protected]> wrote:

From: Samisa Abeysinghe <[email protected]>
Subject: Re: Is Axis2C thread safe .. How do I enable it to be thread safe ???
To: "Apache AXIS C User List" <[email protected]>
Date: Wednesday, 7 July, 2010, 8:27 AM

And you can try and let us know if there are problems.
Samisa...

On Wed, Jul
 7, 2010 at 8:23 AM, Damitha Kumarage <[email protected]> wrote:

ramesh Gopal wrote:




Is it by default thread safe. Or I need to use some apis to make them thread 
safe.




Axis2/C is written to be thread safe.

Damitha




Ramesh



--- On *Tue, 6/7/10, Samisa Abeysinghe /<[email protected]>/* wrote:





    From: Samisa Abeysinghe <[email protected]>

    Subject: Re: Is Axis2C thread safe .. How do I enable it to be

    thread safe ???

    To: "Apache AXIS C User List" <[email protected]>

    Date: Tuesday, 6 July, 2010, 11:32 AM



    It is thread safe.



    Samisa...



    On Tue, Jul 6, 2010 at 11:08 AM, ramesh Gopal

    <[email protected] </mc/[email protected]>>


    wrote:





        Hello,



        Consider a case where-in my development language is not thread

        safe.

        So, if there are multiple simultaneous calls being invoked, we

        are sure to run into memory issues.



        If I use Axis2C framework to convert my source to use the

        capabilities of SOA architecture,

        will this make my applications thread safe ?



        Is there some parameter I can use to make thread safe.

        Pls let me know if there are some apis too which will help

        achieve this ?



        Rgds,

        Ramesh.





    Samisa Abeysinghe

    VP Engineering

    WSO2 Inc.

    http://wso2.com

    http://wso2.org














--
__________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to