Sorry if it wasn't clear. Let's try it again.
In your Servlet you likely have at least a doGet() method - I'm going to guess that that is what you are showing. You need to break up the work into...
Type: Posts; User: stdunbar
Sorry if it wasn't clear. Let's try it again.
In your Servlet you likely have at least a doGet() method - I'm going to guess that that is what you are showing. You need to break up the work into...
So effectively you've got an asynchronous process but you're trying to treat it as a synchronous process.
My recommendation would be two fold. First, no user wants to wait 4 minutes for a result...