On Thu, 31 Jan 2002, Serge A. Redchuk wrote:

> Date: Thu, 31 Jan 2002 13:31:53 +0200
> From: Serge A. Redchuk <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>      Serge A. Redchuk <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re[2]: multiple init() calls
>
> Hello David, Anton !
>
> thanks a lot for help !
>
> And excuse me because while asking the question about
> multiple init() calls I've forgotten to inform about one thing ...
>
> My servlet IS NOT directly extended from HttpServlet,
> but:
>
> import org.apache.struts.action.ActionServlet;
> ...
> public class ActionRouterServlet extends ActionServlet {
> ...
>
> So, I'm using the Struts framework, and maybe this is a source of
> problem.
>
> Now I'm exploring ...
>

The Struts servlet does not implement the SingleThreadModel interface, so
the cause will be one of the other issues that I described in my previous
message (configuration error, or init() is throwing an exception that will
be dumped into the log files).


> ====
> Maybe anybody encountered something similar ?
> The trouble is that init() of init servlet is called again and again
> from time to time even when previous init servlet instance remains
> alive.
> But in the init() method I'm creating a thing, and I want only one
> instance of this sing.
> Play with static variables can't help me.
>
> It looks like every init servlet executed in own JVM      8-o
>
> Again:
> pc/Linux/IBM Java
>

Craig


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to