• 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
Re: How to return Response in same context from another thread?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to return Response in same context from another thread?


  • Subject: Re: How to return Response in same context from another thread?
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 24 Feb 2006 14:42:16 -0800


On Feb 24, 2006, at 2:23 PM, Kieran Kelleher wrote:

Is it possible for me to generate a response back to the user in a separate thread without a matching request?

In a word, no.  That is the nature of http: request - response.


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?

It is not a push technology, you can't force content into the browser, you can't force the browser to request content.


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.

Open a new window for the download?

Chuck

--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects




_______________________________________________ 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: email@hidden
References: 
 >How to return Response in same context from another thread? (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: How to return Response in same context from another thread?
  • Next by Date: EOModeler reference tables from different Schema
  • Previous by thread: How to return Response in same context from another thread?
  • Next by thread: Re: How to return Response in same context from another thread?
  • Index(es):
    • Date
    • Thread