You can try having a single servlet that has 'handlers' for it and so 
all requests go through it first and it dipatches them further to 
handlers.  I have this setup and map the servlet to something like 
/handler and then for an action such as handler/AuthenticationHandler 
the request goes to 'handler' servlet and it figures out what 
AuthenticationHandler is and if it exists it forwards the request to it.

It works very nice.

d.

Extance, Paul wrote:
> Hello,
> 
> Is it possible to write a 'validation' servlet, that does some basic checks,
> which if fail, cause the whole web application to be unavailable?
> 
> This servlet would be flagged as <load-on-startup> such that it was the
> first one to execute.
> 
> I'm trying to achive something similar to JBoss 2.x where if the verifier
> fails for an EAR, it does not deploy it at all. I want the similar concept
> but for my Web Application, such that critical initialization errors make
> the the whole application unavailable.
> 
> I can't find anythingin in the Java Servlet Spec to indicate that this is
> possible, or anything in the tomcat documenation.
> 
> Thoughts?
> 
> Thanks 
> 
> PaulE
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> 


-- 
David Mossakowski              [EMAIL PROTECTED]
Instinet Corporation                 212.310.7275



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to