> Are your applet and browser calling the same url? If you defined multiple
> definitions for your servlet in web.xml you will get separate
> instances. Also if you have your context loaded twice: defined as a
> in server.xml and autoloaded.
>Charlie
Thanks! The problem was that I requested ser
twice: defined as a
in server.xml and autoloaded.
Charlie
> -Original Message-
> From: Daniil Ivanov [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, November 17, 2002 9:48 AM
> To: Tomcat Users List
> Subject: Re:Re: why Tomcat 4.0.4 creates new instance of servlet, when
>
>
> If I understand you correctly I think I must say a servlet get's
initialized once, when it's loaded (by the classloader), and then only again
if it's changed.
It must be so in theory, but in fact I see, that when applet request servlet
(that was already initialized) at first time, the servl
---
> From: Daniil Ivanov [mailto:[EMAIL PROTECTED]]
> Sent: 17. nóvember 2002 13:58
> To: [EMAIL PROTECTED]
> Subject: why Tomcat 4.0.4 creates new instance of servlet,
> when applet make first request to servlet?
>
>
> Given:
> Tomcat 4.0.4 and servlet, that was alr
Given:
Tomcat 4.0.4 and servlet, that was already initialized when browser made
request to it.
When browser window with applet opens, applet begin periodically query the
servlet through standard method doPost. But at the first request applet to
servlet Tmcat creates a new instance to servlet, in s