Thanks James. This is the most probable cause. I converted my super class servlet as single thread just yesterday. And it started behaving this way. Actually I am not handling multithreading properly. So I decided to make it single threaded till I do that. Thanks again.... -----Original Message----- From: Garrett, James A [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 29, 2000 11:28 PM To: 'Anshul Dutta' Subject: FW: init method being called multiple times, when the first request is made. Are your servlets running in single threaded mode, and if so is your servlet engine setup to spawn multiple instances of the servlet to handle multiple requests. In my experience some servlet engines will allow you to spawn multiple instances of servlets which run in single threaded mode. This would explain the behavior you are describing. Can you describe your servlet and the environment it runs in. Jim G. > -----Original Message----- > From: Anshul Dutta [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, June 29, 2000 10:39 AM > To: [EMAIL PROTECTED] > Subject: init method being called multiple times, when the first > request is made. > > Hi all, > I have a servlet (call it xxx)that doesn't have any goGet/doPost method. > it > has got some generic methods which are usable to all the servlets. > So I extend this servlet from all other servlets, let us name one of them > as > yyy. Now as yyy is invoked for the first time, it's init method is called > which in turn calls the init method of xxx. (I have implemented it that > way). Now the problem is that this method is called 5 times each. The > message that I put in both of the methods say this...(This message is for > a > single request) > > Inside init method of servlet yyy... > Inside init method of servlet xxx... > Inside init method of servlet yyy... > Inside init method of servlet xxx... > Inside init method of servlet yyy... > Inside init method of servlet xxx... > Inside init method of servlet yyy... > Inside init method of servlet xxx... > Inside init method of servlet yyy... > Inside init method of servlet xxx... > > I guess I am through with the problem explanation... > Any one any clues?? > > __________________________________________________________________________ > _ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
