Hello everyone,

I've been working on a framework for a large application here and am
looking for some advice on how I should implement it.

Currently, we've written a base servlet class that all other servlets
extend from.  The base servlet class performs error trapping,
authentication, etc., and passes the state of the current request to
protected methods via our own context class.

But it seems that a cleaner approach might be to have only one servlet
which loads and instantiates non-servlet classes based on the PATH_INFO of
incoming request.  That would eliminate the need to pass context objects
around, and might allow for better security.

On the other hand, inheriting from a base servlet might perform better (in
both cases a new object is instantiated per request, but perhaps the
servlet engine does some optimizations in this case)?

Does anyone have any suggestions as to which approach is better?  We're
expecting very high traffic (one million page views/day or higher).

Thanks,
Ben


--
Ben Engber
Software Engineer
The New York Times
[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to