I’m developing a web app with Spring, Hibernate and Informix…
It has a data importing process that takes up to 30 minutes, and while the user is waiting for it to end Internet Explorer shows an error telling the user that the page cannot be displayed, but the web app is still running (it keeps writing logs and importing data).
Why does this happen? Is it because it takes so long to show the resulting jsp?
How can I avoid this?
Thank you.
Your browser waits 30 minutes to response and shows error page if there is no response within this time. There are various solutions for such a problem. Example: it is stress test, so you can run it at night (or other time when servers are not working hard) using cron and command line “browser” (like wget) and saving results into temp table. Then instead of starting tests from browser you can show results from this temp table.
Other idea: from your browser start background thread that will be filling temp table and display partial results with “Refresh” button. Action from this button will just read temp table. Add special record that will mean “end of tests”, and show “refresh” when you will not find that special record.