Re: [Axis2] multi thread client

2009-02-20 Thread Rajika Kumarasiri
On Fri, Feb 20, 2009 at 1:37 PM, Jorge Nevado jorge.nev...@ericsson.comwrote:
Hi there,
Axis2/C's client APIs are not thoroughly test for thread safeness. It's said
that svc client API is not good to use in a mult-threaded environment. I
think you can create your own threads and test some random senarios to get
an idea.

-Rajika


 Hi

 I am wandering if Axis2 library could be able to send multiple SOAP
 requests from a client in a thread-safe way.
 I have seen that using axutil_env_create_all I could have a system
 environment and with axutil_init_thread_env and axutil_free_thread_env I
 could handle something like sub-environment for the threads, but I do not
 get a clear idea of how to proceed.

 - should I create the threads?
 - the threads do not share anything (e.g. connections)?
 - the threads are created automatically from a thread pool or do I need to
 create them or request to be created with axutil_thread_create?

 Could you please provide an example of how these functions should be
 integrated?

 Thanks in advance,
 Jorge.




-- 
http://wso2.org/
http://llvm.org/
http://www.osdev.org/


RE : [Axis2] multi thread client

2009-02-20 Thread Lefrancois, Carl
Hello Jorge, welcome

I believe Manjula posted some good info on how to use then clean up
calls from multiple threads.

It is better to use Guththila as your parser with more than one thread.
It should be your default now after 1.5.0.

Axis handles internal management of threads so you only need to use
internal axutil_thread_xx if you want more control.   For just sending
and receiving it should be ok to create your threads in your client and
have each one call the stub function for communication.

Hth
Carl

-Message d'origine-
De : Jorge Nevado [mailto:jorge.nev...@ericsson.com] 
Envoyé : vendredi, février 20, 2009 03:07
À : axis-c-user@ws.apache.org
Objet : [Axis2] multi thread client




Hi 
I am wandering if Axis2 library could be able to send multiple SOAP
requests from a client in a thread-safe way. 
I have seen that using axutil_env_create_all I could have a system
environment and with axutil_init_thread_env and
axutil_free_thread_env I could handle something like sub-environment
for the threads, but I do not get a clear idea of how to proceed.
- should I create the threads? 
- the threads do not share anything (e.g. connections)? 
- the threads are created automatically from a thread pool or do I need
to create them or request to be created with axutil_thread_create?
Could you please provide an example of how these functions should be
integrated? 
Thanks in advance, 
Jorge.
  _  

Ce message est confidentiel, à l'usage exclusif du destinataire
ci-dessus et son contenu ne représente en aucun cas un engagement de la
part de AXA, sauf en cas de stipulation expresse et par écrit de la part
de AXA. Toute publication, utilisation ou diffusion, même partielle,
doit être autorisée préalablement. Si vous n'êtes pas destinataire de ce
message, merci d'en avertir immédiatement l'expéditeur.

This e-mail message is confidential, for the exclusive use of the
addressee and its contents shall not constitute a commitment by AXA,
except as otherwise specifically provided in writing by AXA. Any
unauthorized disclosure, use or dissemination, either whole or partial,
is prohibited. If you are not the intended recipient of the message,
please notify the sender immediately.