Re: How to handle long responses with direct action?
Re: How to handle long responses with direct action?
- Subject: Re: How to handle long responses with direct action?
- From: Lachlan Deck <email@hidden>
- Date: Fri, 9 Apr 2010 22:40:32 +1000
On 09/04/2010, at 6:54 PM, Amiel Montecillo wrote:
> I have a direct action method that performs a rather lengthy process. I
> looked at WOLongResponsePage but it seems that it creates a session.
Is the lengthy process handled via a separate thread?
Assuming it is, you've got two options:
- use WOLongResponsePage and terminate the session when done.
- simulate WOLongResponsePage by using WORedirect to refresh the direct action (perhaps increment some query param or cookie value) until the task is done. You'd need to register the thread with the app with some unique key that's stored in a cookie or something.
> Is there a way to handle a long running process on a direct action without
> creating any session?
with regards,
--
Lachlan Deck
_______________________________________________
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