Hi,
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.
Karl
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,
> kamal
>
> "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
> Gautam Batra wrote:
>
> > Hello all, Is there any class in java, that can tell me the mime type
> > if i give it the file name. I need to specify this for the
> > response.setContentType()...for client side file downloading. Thanks
> > all ! Gautam
>
> Is there something you need that ServletContext.getMimeType() does not
> tell you? Check the API docs for the details.
>
> Craig McClanahan
>
> ___________________________________________________________________________
> 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
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
> ___________________________________________________________________________
> 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