Does sombody can help me with following.
I have a web application where business logic can access to external servers and some times it takes a lot of time. I would like to propose user in this case to go to another part of the app and dont wait it.
To implement this I added a filter to my webapp and run request inside the filter in separate thread. In the case of thread running longer N sec, I redirect user to the 'Sorry, it is too long operation' page.
Now is a question: after redirection to the 'sorry' page I would like to finish first request in the background mode but it is impossible becouse the status of the http request is changed and it is became commited. How can I do this ? Is it possible?