Hi, I have a question about the UnavailableException(Stringmsg, int seconds) Say, we have protected void doGet(HttpServletResponse res, HttpServletREquest req)throws IOException, ServletException{ if(someBoolean){ throw new UnavailableExeption("Unavailable from doGet", 10); } // some presentation here; } The first time we get a someBoolean==true, and the UnavailableExcption was thrown for 10 seconds. Then within 3 seconds, a second request comes in while someBoolean is still ==true; this time, will the UnavailableException be overridden to another 10 seconds? Moreover, if, within 3 seconds, another request comes with someBoolean==false, will the presentation be shown, or it will be referred to the designated error page? Thanks.
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12265
1
posted
0
By my reading of the API, subsequent requests will get a SERVICE_UNAVAILABLE (503) message until the time is up. Bill