Hello Nitin,

������, 1999��7��16��, you wrote:

NK> Hi All,

NK> This is regarding the calling of the destroy method. I am a bit confused
NK> I do not think that browser has anything to do with calling of destroy method.
the destory method is not call by browser, it is called by servlet
engine, when servlet engine "think" this servlet should be destroied,
it will call the servlet's destroy method.
NK> I think it is the servers responsibility of taking a servlet off depending on
NK> certain criteria. I am not sure who specifies these.
    maybe you should have a look on servlet engine's whitepaper.
NK> When a servlet sends a reply back to the browser the connection between the two
NK> no longer exists.

NK> As far as reloading of a servlet is concerned the server employs custom class
NK> loaders when the class file undergoes any change.
please tye this:                          ~~~~
       sent a doget require to your servlet, (you see the return
       page), then delete the .class file, sent another require to the
       servlet,you will find the page is there still.

NK> Please correct me if I am wrong.

NK> Regards

NK> Nitin

NK> 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]
>> > >
>> > >



Best regards,
 DragonTown                            mailto:[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

Reply via email to