Re: servlet

Richard Yee <[email protected]> Thu, 20 Oct 2005 21:00:25 -0700
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
no. Since it will be called from init(), it will be called only once
when the servlet is loaded. You might want to set the servlet to load on
startup or do this in a ContextListener instead.

-R

SUBSCRIBE EJB-INTEREST anonymous wrote:
> Hi,
> I have a question.
> I have a servlet.I want to load  country from database and put in
> application context.
> My question is "Does  the method called from init() to perform the above
> has to synchronized " to be thread safe?
>
> Thanks in advance,
>
> ___________________________________________________________________________
> 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