axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lefrancois, Carl" <Carl.Lefranc...@axa-canada.com>
Subject RE : [Axis2] multi thread client
Date Fri, 20 Feb 2009 15:50:32 GMT
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.nevado@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."

Mime
View raw message