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]

Reply via email to