Dear Magnolians

I'm struggling a bit with the following situation:

We need to execute a task that can sometimes be quite expensive and do not want 
to block the request-response-loop for that time. Instead we want to return a 
page immediately and have the task executed in the background. Once the task 
has been completed, it should update the users session object.

For the background execution we're planing to use 
java.util.concurrent.Executor. However I have not seen an easy way to get the 
users session object without registering a HttpSessionListener in the web.xml. 
We really would like to leave the web.xml untouched (in order to avoid update 
nightmares). Does anyone know a good way to do this? Passing the session object 
to the runnable in the background process is not a good idea, right?

Thanks!
-will


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to