> In fact, if you alias the same servlet class name to two different
> aliases in Apache JServ, you do get two instances -- one per alias.
> This is needed, because the lifecycles of each instance are managed
> individually  Your "counter in an instance variable"
> then works the way you want, if the servlet engine does not
> distribute the same alias across multiple servers, or create
> multiple instances for some other reason.

Exactly.  It's those "if" statements that concern me.  Essentially,
it works like I want, unless the servlet engine decides to optimize.
This is why I believe we need a way to say "please don't make more
than one instance of this servlet per registered name".

-jh-

--
Jason Hunter
[EMAIL PROTECTED]
Book:    http://www.servlets.com/book
Article: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.html

___________________________________________________________________________
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