>>> Jim Preston <[EMAIL PROTECTED]> 4/28/99 11:47:16 PM >>>
> So while in the writing of a non-servlet you
>wouldn't give a thought to keeping a couple of megs of data
>around, those same couple of megs could multiply into a few
>hundred megs in a servlet engine, right?

You'll hate this but.. it rather depends on what you're actually
doing.

Of course the invocations are only to the service() methods. Not the
init() method.

It is request phase object creation that you must concern yourself
with.

>(Darn these nit-picking engineers :-)

Actually I'm not an engineer. /8->

>And, given that it sounds like you're saying that there's no
>significant performance difference between the two approaches,
>this way seems more elegant.

You're ignoring what the servlet engine might have to carry for
multiple objects.

Multiple path mappings, multiple copies of init parameters.

Just for starters.


Nic Ferrier
Tapsell-Ferrier Ltd
www.tapsellferrier.co.uk

___________________________________________________________________________
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