I'd suggesting implementing a filter.
http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/Filter.html
Ronald.
Op vrijdag, 24 oktober 2008 om 12:21 uur schreef Tomcat Users List
<users@tomcat.apache.org>:
Subject: Suspending Servlet Request Acceptance?
Date: Fri Oct 24 12:21:31 CEST 2008
From: Jeng Yu <[EMAIL PROTECTED]>
Hi Folks!
What is the best way for an administrator to tell
Tomcat (or maybe tell a specific servlet) to
temporarily stop accepting new requests for a running
servlet?
I'm thinking of a scheme like this: I put code in the
servlet doGet()/doPost() processing block of the
servlet and have it check if a particular file
somewhere exists. If so, send request reject message
to
client. If the file does not exist, go ahead with the
processing. Downside: Someone that knows could use it
to cause denial of service to my servlet, but security
checks can be put in place to make it harder to do so.
What do you folks think?
Thanks,
Jeng
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]