>>> Milt Epstein <[EMAIL PROTECTED]> 24-May-00 2:36:10 PM >>>
>OK. But then how is this reconciled with what I said about the
spec
>requiring that only one instance be created in most cases? Is the
>correct interpretation that only one instance be created unless
there
>are multiple mappings *or* SingleThreadModel is implemented?
Only one instance should be created unless there are multiple
mappings.
In fact the mapping->servlet class should be considered an instance
binding.
If the spec doesn't currently say so then it needs to be changed. I
will go through it and make sure that it feeds into the current JSR.
The SingleThreadModel issue is different.
The spec requires that there be only one instance per mapping because
to do otherwise would break SingleThreadModel (no bad thing in my view
but there we are...).
If you had two instances mapped to a single path how would you
synchronize them?
With one instance mapped to a path it's easy:
synchronized(servletobject)
{
servletobject.service(request,response);
}
Nic Ferrier
___________________________________________________________________________
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