I think the 'By default' applies to the SingleThreadModel case - it's the
"there must be..." that is more relevant.
In fact in section 3.3.3.1 the spec says
"However, the container must not create an instance pool as it does for
servlets that implement the SingleThreadModel. It is strongly recommended
that developers not synchronize the service method or any of the HttpServlet
service methods such as doGet, doPost, etc."
Pretty conclusive I'd say!
Kevin
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Cezar
Totth
Sent: 09 September 1999 15:18
To: [EMAIL PROTECTED]
Subject: Re: 2.2 Spec and number of Instances
On Thu, 9 Sep 1999, Kevin Jones wrote:
> Section 3.2 of the August Servlet 2.2 spec (PR1) says that 'By default,
> there must be only one instance of a servlet class per servlet definition
in
> a container' - in the past there's been discussion on this list (and the
JSP
> list) about threading. Now, modulo SingleThreadModel (which the spec talks
> about in the next paragraph) my understanding was that a servlet engine
> could (and often/always did) instantiate a pool of servlets (within the
same
> container) to provide a degree of load balancing - this statement seems to
> stop that. Am I reading this correctly or am I missing something?
No, the statement starts with "By default.." wich means it recommends
an behaviour wich can be configurable/overriden.
>
> Kevin
>
Cezar
___________________________________________________________________________
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
___________________________________________________________________________
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