Re: servlet
Chris Pratt <[email protected]> Tue, 18 Oct 2005 15:42:12 -0700
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_3304_7712507.1129675332375 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline That is correct, during init() and destroy() there is only allowed to be on= e active instance. (*Chris*) On 10/18/05, Duc Vo <[email protected]> wrote: > > I believe the answer is "no", by default you only have one instance of > the servlet running. > > -----Original Message----- > From: A mailing list for discussion about Sun Microsystem's Java Servlet > API Technology. [mailto:[email protected]] On Behalf Of > SUBSCRIBE EJB-INTEREST anonymous > Sent: Wednesday, October 19, 2005 2:48 AM > To: [email protected] > Subject: servlet > > 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 > ___________________________________________________________________________ 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 ------=_Part_3304_7712507.1129675332375 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline That is correct, during init() and destroy() there is only allowed to be on= e active instance.<br> (*Chris*)<br><br><div><span class=3D"gmail_quote">On 10/18/05, <b cl= ass=3D"gmail_sendername">Duc Vo</b> <<a href=3D"mailto:[email protected]"= >[email protected]</a>> wrote:</span><blockquote class=3D"gmail_quote" st= yle=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex= ; padding-left: 1ex;"> I believe the answer is "no", by default you only have one instan= ce of<br>the servlet running.<br><br>-----Original Message-----<br>From: A = mailing list for discussion about Sun Microsystem's Java Servlet<br>API Tec= hnology. [mailto: <a href=3D"mailto:[email protected]">[email protected].= COM</a>] On Behalf Of<br>SUBSCRIBE EJB-INTEREST anonymous<br>Sent: Wednesda= y, October 19, 2005 2:48 AM<br>To: <a href=3D"mailto:SERVLET-INTEREST@JAVA.= SUN.COM"> [email protected]</a><br>Subject: servlet<br><br>Hi,<br>I have = a question.<br>I have a servlet.I want to load country from data= base and put in<br>application context.<br>My question is "Does &= nbsp;the method called from init() to perform the above <br>has to synchronized " to be thread safe?<br><br>Thanks in advance,= <br><br>___________________________________________________________________= _____<br>___<br>To unsubscribe, send email to <a href=3D"mailto:listserv@ja= va.sun.com"> [email protected]</a> and include in the<br>body<br>of the message &quo= t;signoff SERVLET-INTEREST".<br><br>Archives: <a href=3D"http://archiv= es.java.sun.com/archives/servlet-interest.html">http://archives.java.sun.co= m/archives/servlet-interest.html </a><br>Resources: <a href=3D"http://java.sun.com/products/servlet/external= -resources.html">http://java.sun.com/products/servlet/external-resources.ht= ml</a><br>LISTSERV Help: <a href=3D"http://www.lsoft.com/manuals/user/user.= html"> http://www.lsoft.com/manuals/user/user.html</a><br><br>____________________= _______________________________________________________<br>To unsubscribe, = send email to <a href=3D"mailto:[email protected]">[email protected]= m </a> and include in the body<br>of the message "signoff SERVLET-INTERE= ST".<br><br>Archives: <a href=3D"http://archives.java.sun.com/archives= /servlet-interest.html">http://archives.java.sun.com/archives/servlet-inter= est.html </a><br>Resources: <a href=3D"http://java.sun.com/products/servlet/external= -resources.html">http://java.sun.com/products/servlet/external-resources.ht= ml</a><br>LISTSERV Help: <a href=3D"http://www.lsoft.com/manuals/user/user.= html"> http://www.lsoft.com/manuals/user/user.html</a><br></blockquote></div><br> ___________________________________________________________________________ To unsubscribe, send email to [email protected] and include in the body of the message "signoff SERVLET-INTEREST". <p> 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 <p> ------=_Part_3304_7712507.1129675332375--