• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to return Response in same context from another thread?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to return Response in same context from another thread?
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: EO Model (not the standalone EOModeler) in Xcode
  • Next by Date: Re: How to return Response in same context from another thread?
  • Previous by thread: Re: LDAP on tiger
  • Next by thread: Re: How to return Response in same context from another thread?
  • Index(es):
    • Date
    • Thread