init is graunteed to be called once once.
----- Original Message -----
From: S. Chen <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 19, 2000 11:08 AM
Subject: Is it possible init() be called twice?
> Hi,
>
> Assume the servlet is loaded when it is first called. In that case,
> if two requests called the servlet at exactly the same time, is it
> possible that the method init(...) be called twice? So that one needs
> do some synchronization inside init(...) is needed?
>
> Or, init(..) is guaranteed to be called only once?
>
> -SC.
>
>
___________________________________________________________________________
> 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