On Thu, 29 Jun 2000, Anshul Dutta wrote:
> 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??
Perchance dose your servlet implement SingleThreadModel? If so,
likely your servlet engine/container is creating a pool of servlet
instances (of size 5).
Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]
___________________________________________________________________________
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