Quantcast
Channel: JavaPins - Stories tagged with servelet-31
Viewing all articles
Browse latest Browse all 8

Servlets interview questions and answers

$
0
0
Q. How do you get your servlet to stop timing out on a really long database query? A. There are situations despite how much database tuning effort you put into a project, there might be complex queries or a batch process initiated via a Servlet, which might take several minutes to execute. The issue is that if you call a long query from a Servlet or JSP, the browser may time out before the call completes. When this happens, the user will not see the results of their request. There are proprietary solutions to this problem like asynchronous servlets in WebLogic, Async Beans in WebSphere etc but you need a solution that is portable. Let us look at portable solutions to this issue.
Pin it

Viewing all articles
Browse latest Browse all 8

Trending Articles