Hi,

> -----Original Message-----
> From: Serge A. Redchuk [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 10:34 AM
> To: [EMAIL PROTECTED]
> Subject: multiple init() calls
> 
> 
> Hi All !
> 
> I've encountered a problem with creating threads of init servlet.
> 
> Forgive me if I'm wrong.
> 
> As I think, catalina must call init() method of init servlet _once_.
> And then just must make only copies of init servlet instance for new
> user requests.
> 
> But I've encountered that the init() method called again and again !
> At every creation of new action router.
> 

Does your servlet implement SingleThreadModel?
If so you got what you wanted, AFAIK.

> It is not the thing that I need !!!
> 
> Platform: pc
> Os: linux
> JDK: IBM Java
> 
> web.xml:
> ...
>   <!-- Standard Action Servlet Configuration (with debugging) -->
>   <servlet>
>     <servlet-name>action</servlet-name>
>     <servlet-class>.....ActionRouterServlet</servlet-class>
>     <init-param>
>       <param-name>application</param-name>
>       <param-value>ApplicationResources</param-value>
>     </init-param>
>     <init-param>
> ...
> 

Anton

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

Reply via email to