At 01:50 PM 12/5/01 -0500, Aaron Held wrote: >I would like to be able to fire off a long runing process from a servlet >and then detach it so I can close the page. Currently I am >experimenting by creating another independent small server process, but is >there some better way? >I just started looking at TaskKit and I was thinking about a starting a >new Task and passing the user session info. It would be >great if the task could then report its progess back to that users >session, where I can pick it up for display in a web page. > >Has anyone tried something like this?
Not really, but TaskKit should work, or you could just spawn a thread. (I'm not sure TaskKit has any advantage if it's just a one-time task that is supposed to start right away.) You need to consider what happens to your thread if the appserver is stopped though. It seems like as long as your task has access to the session ID and the application object, it should be able to write information into the session by calling application.hasSession() to make sure the session still exists, then application.get() to get the session object. -- - Geoff Talvola [EMAIL PROTECTED] _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss