Discussions

Web tier: servlets, JSP, Web frameworks: process http request in background mode

  1. process http request in background mode (2 messages)

    Hello !
    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?
  2. process http request in background mode[ Go to top ]

    frame + javascript.
  3. To implement this add a filter to the webapp and run request inside the filter in separate thread. In the case of thread running longer then N sec, redirect user to an error page.

    Hope this helps!