Title: Message
 
Hi Jesper,
 
i didn't know that it could be possible to wait diferents threads. This is the solution i need���
 
Do you know any sample code or pattern applied to this???
 
Thank you very much.
 
Enrique.
-----Mensaje original-----
De: Jesper S�derlund [mailto:[EMAIL PROTECTED]]
Enviado el: mi�rcoles, 30 de octubre de 2002 14:21
Para: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Asunto: RE: Make parallel calls to diferents web services

That sounds a bit over ambitious unless you want to do something with these response separatly later on. If they are both a part of a single transaction a much simpler approach would be to:
- spawn off 2 thread
- have the spawning thread wait (join) on the two threads running to completion
- have the 2 threads deposit the result in a synchronized collection of some kind
- the waiting thread pick up the result after the two threads have terminated and they continue processing.
 
/Jesper
-----Original Message-----
From: Enrique Rodr�guez [mailto:[EMAIL PROTECTED]]
Sent: den 30 oktober 2002 10:29
To: [EMAIL PROTECTED]
Subject: RE: Make parallel calls to diferents web services


Yes i could do it, but where i store the response of differentes threads of differnets calls.

I'm thinking that i should have and ID of any group of calls, and store the response in a database, that i wil consult some time later, 10 seconds, or something like that.

Regards, Enrique.

-----Mensaje original-----
De: Herrick, Mike [mailto:[EMAIL PROTECTED]]
Enviado el: mi�rcoles, 30 de octubre de 2002 2:54
Para: '[EMAIL PROTECTED]'
Asunto: RE: Make parallel calls to diferents web services


I haven't done it personally, but I would think that you could bust out a couple of threads and do it?

Mike

-----Original Message-----
From: Enrique Rodriguez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 29, 2002 3:32 PM
To: [EMAIL PROTECTED]
Subject: Make parallel calls to diferents web services


Hi all,

two days browsing internet and i can't find any clue to do it, many parallel
calls to diferente web service.

I don't know if this is imposible, but I think that it should be a normal behavior.
did anyboy do something similar??

Any help will be very apreciated.

Regards, Enrique.


Reply via email to