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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to