Hi, > -----Original Message----- > From: Donie Kelly [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 06, 2002 9:42 PM > To: 'Tomcat Users List' > Subject: Init method of servlet called twice? > > > Hi all > > Can anybody tell me why the init method can be called twice in a > servlet. I > am loading the servlet on startup and init is first called there. > > The first request to the servlet then calls the same init method again? > Please help. I cannot init twice. >
This topic was discussed about a week ago, and Craig gave perfect and clear answer (as always). Try mail archives. As far as I remember init() can be called multiple times if: 1. TC4 and servlet implements SingleThreadModel 2. servlet is called by invoker (something like http://myhost/servlets/myServlet) 3. init() throws exception (that I don't remember exactly) > Thanks > Donie > Anton -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
