hi i think there may be a misunderstanding (or i misunderstood your message ?!) the servlet must create _only_ one instance of each servlet class per web application then this instance must receive _one_ message init() at this point user request may be served for each user request, a thread is started and executes the service(...) method on the _shared_ instance
the singleThreadModel only tells the servlet engine not to serve several request simultaneously this is the behaviour required by the J2EE specs as for your problem, i'm doing servlet for about 2 years now and i never saw that kind of behaviour... may be a look at your code would help... have fun! David > > -----Original Message----- > > From: Serge A. Redchuk [mailto:[EMAIL PROTECTED]] > > 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]> > > > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
