Hi:
Does anyone know who manages the pool of servlet instances?
Thanks.
-----Original Message-----
From: Kevin Mukhar [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 10, 1999 11:44 AM
To: [EMAIL PROTECTED]
Subject: Re: request-instance of servlet
> kalaikamal wrote:
>
> > hi,
> > For every request i make to a (same) servlet,is an instance created anew
or
> > the instance of the servlet at the servers' JVM will be shared.If
created anew
> > what wu'd be the state of old instances?
> > thanks,
Karl Roberts wrote:
>
> In normal operation, each request to the servlet causes the servlet to
spawn
> a thread to handle the request. If However, you implement the
SingleThreadModel
> interface then a new instance of your servlet will be created to handle
each
> request.
Well, almost. If the servlet does not implement SingleThreadModel, then the
new
thread is created by the servlet engine. When the servlet implements
SingleThreadModel, each request will be handled by an instance of the
servlet
class, however that does not necessarily mean that a new instance is created
for
each request. Based on the discussions I've seen on the list, a pool of
instances will be used to handle requests.
Kevin Mukhar
___________________________________________________________________________
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