Re: Asynchronous HTTP Downloads

2010-03-17 Thread Mike Schrag
I would put this in a "doesn't really make sense" pile for a couple reasons: why are you making the process async if you're just going to block till it's done? you really don't want to block in your direct action or you're going to timeout your connection (assuming these downloads can be really

Re: Asynchronous HTTP Downloads

2010-03-17 Thread Hendrik Holtmann
Hi Mike, thanks for the hint. Thats works well. However during implementation/conception I ran into another problem. I want to start the asynchronous downloads from a DirectAction-Method and as soon as the Async-Downloads are all completed the same DirectAction-Method shall return data (aggreg

Re: Asynchronous HTTP Downloads

2010-03-17 Thread Anjo Krank
Am 17.03.2010 um 12:44 schrieb Mike Schrag: > screw wohttpconnection ... Seconded. Cheers, Anjo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Upda

Re: Asynchronous HTTP Downloads

2010-03-17 Thread Mike Schrag
screw wohttpconnection ... use Apache HTTPClient. as far as async vs sync, just run it in thread / executorservice On Mar 17, 2010, at 7:33 AM, Hendrik Holtmann wrote: > Hi, > > I have to download data from external sources in my WebObjects-Application. > As the download required several reque

Asynchronous HTTP Downloads

2010-03-17 Thread Hendrik Holtmann
Hi, I have to download data from external sources in my WebObjects-Application. As the download required several requests from different sources I would like to do this in an asynchronous manner. I looked into WOHTTPConnection and WORequest. I can implement the download using these classes, but