Hi All,

This is regarding the calling of the destroy method. I am a bit confused
I do not think that browser has anything to do with calling of destroy method.
I think it is the servers responsibility of taking a servlet off depending on
certain criteria. I am not sure who specifies these.

When a servlet sends a reply back to the browser the connection between the two
no longer exists.

As far as reloading of a servlet is concerned the server employs custom class
loaders when the class file undergoes any change.

Please correct me if I am wrong.

Regards

Nitin

Mark Foley wrote:

> Andy, Thank you for your response, but even though this
> behaviour was repeatable and clear to the testers, it
> changed when we re-installed ServletExec 2.1.  Now we
> don't see destroy() being called at all, but that is
> what we expected.
>
> Mark
>
> > -----Original Message-----
> > From: Andy Bailey
> > Sent: Tuesday, July 13, 1999 12:38 AM
> > To:   [EMAIL PROTECTED]
> > Subject:      Re: When is destroy() called?
> >
> > > Hi All,
> > >
> > > We have noticed that the servlet destroy() method is
> > > called every time we close the browser which referenced
> > > our servlet (with no other browsers in use).
> > >
> > Something is causing the servlet to be removed from the server then.
> > Either it is because of lack of resources or because you have implemented
> > it as SingleThreadModel servlet.
> >
> > Actually, it may be that the servlet is not loaded at server start and the
> > servlet enginedumps it afterwards OR even something as esoteric as the
> > servlet engine thinks that the servlet class file has been changed,
> > causing
> > it to reload (hence causing the destroy method calls)
> >
> > > I believed the servlet should only be 'destroy'ed (unloaded)
> > > when the JVM needed the memory AND the servlet was no
> > > longer in use.
> >
> > > Alternatively, is there ever a case when destroy() is _not_
> > > called between the browser closing down and restarting?
> > >
> > > We are using ServletExec with IIS and JDK1.1.7a.  The browser
> > > is IE4
> > >
> > > Thanks,
> > > Mark Foley
> > > EDS (Australia)
> > > +61-2-62756494
> > > [EMAIL PROTECTED]
> > >
> > >
> > __________________________________________________________________________
> > _
> > > 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
>
> ___________________________________________________________________________
> 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

Reply via email to