How to return Response in same context from another thread?
How to return Response in same context from another thread?
- Subject: How to return Response in same context from another thread?
- From: Kieran Kelleher <email@hidden>
- Date: Fri, 24 Feb 2006 17:23:16 -0500
Is it possible for me to generate a response back to the user in a
separate thread without a matching request?
For example, let's say user clicks a link to download a huge file
that's going to take 1 minute to generate before it can be downloaded.
Can I create a new Runnable class, push the WOContext (I guess) to it
and start it's run() and have that thread return a response later using
the WOContext while the user has gone off browsing other pages? If so
how do I return that response?
Right now, I use a long response task to generate the file and when the
task is done the download begins using a contentStream response called
by the end of the long response after the task is done. I would like to
alleviate the need for the user to wait for the file to generate.
Regards, Kieran
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden