-----Mensaje original-----
De: Jesper S�derlund [mailto:[EMAIL PROTECTED]]
Enviado el: mi�rcoles, 30 de octubre de 2002 15:54
Para: [EMAIL PROTECTED]
Asunto: RE: Make parallel calls to diferents web servicesI'll give you a "pseudo-code", this probably won't compile but will give you a start:...Thread ws1 = new Thread( new Runnable() { public run() { // call your code that invokes WS1 } }Thread ws2 = new Thread( new Runnable() { public run() { // call your code that invokes WS2 } }// this will start the threads and cann the "run" mehtodws1.start();ws2.start();// This will wait until the WS-threads have finished, ie run until the end of the "run" methodws1.join();ws2.join();// pickup the data that was deposited by the threadsObject ws1Result = mySyncrnoizedMap.get("ws1");Object ws2Result = mySynchronizedMap.get("ws2");.../jesper-----Original Message-----
From: Enrique Rodr�guez [mailto:[EMAIL PROTECTED]]
Sent: den 30 oktober 2002 15:44
To: Jesper S�derlund
Subject: RE: Make parallel calls to diferents web servicesHi 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 servicesThat 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.
Title: Message
thank
you a lot. It's a great point to start.
I will
post my results, becouse i think it is very interesting, and very
usable.
Regards, Enrique.
- RE: Make parallel calls to diferents web services Herrick, Mike
- RE: Make parallel calls to diferents web services Enrique Rodr�guez
- RE: Make parallel calls to diferents web services Jesper S�derlund
- Enrique Rodr�guez
