Re: destroy() method invocation

2000-10-30 Thread mike niemaz

Hi,

"Craig R. McClanahan" wrote:

 You don't ... and you should NOT ... call destroy() on your servlet instance.

Yes I understand that. I just meant to invoke the detroy method indirectly
when launcing the shutdown tomcat script.

 Tomcat calls it for you when it is shut down normally.  Failure to do so is a
 bug in Tomcat -- which may well be true in 3.1, but not in 3.2 or 4.0.


OK, I'll check this out. For info, how do I know which version I have ;-)

--mike





destroy() method invocation

2000-10-27 Thread mike niemaz

Could I dare to repost my question,
for which I'd appreciate any kind oh help ;-)

--mike



Hi all,
I would like to invoke the servlet detroy() method
when I stop the tomcat server, to make some clean up.
How do I do that?

Thanx,

--mike





AW: destroy() method invocation

2000-10-27 Thread Merdes, Matthias

hi mike,

you should NOT call destroy() yourself.
it is a life-cycle method that will be called by the container/engine
wehn to stop tomcat properly
(use the shutdown script, don't just kill the process)

hope this helps
matthias


-Ursprüngliche Nachricht-
Von: mike niemaz [mailto:[EMAIL PROTECTED]]
Gesendet am: Mittwoch, 25. Oktober 2000 09:58
An: tomcat-user
Betreff: destroy() method invocation

Hi all,
I would like to invoke the servlet detroy() method
when I stop the tomcat server, to make some clean up.
How do I do that?

Thanx,

--mike




Re: AW: AW: destroy() method invocation

2000-10-27 Thread mike niemaz

"Merdes, Matthias" wrote:

 hi mike,

Hi Matthias


 do you call super.destroy() within your own destroy()?

No but this is not the pb. It is not invoked.

 also, are you sure you have the exact signature?

Well, it's a pretty simple signature but I shall double check ;-)

 i cannot imagine that tomcat should have such a basic lifecylce bug...

Me never, but maybe we are misunderstanding the activation process
of this method...
Anybody?

--mike