  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | JSP - A mailing list about Java Server Pages specification and reference | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | ResultSetInPool | ResultSetInPool 2004-10-01 - By Ashutosh Bhardwaj
Back No init() is called only once in lifecycle of servlet.
__ __
From: A mailing list for Java(tm) 2 Platform, Enterprise Edition [mailto:J2EE-INTEREST@(protected)] On Behalf Of Naveen Soni Sent: Friday, October 01, 2004 4:48 PM To: J2EE-INTEREST@(protected) Subject: Re: ResultSetInPool
Thanks everyone for responding. But I want to know, can how somehow call init() method
of servlet again without restarting the server.
__ __
From: A mailing list for Java(tm) 2 Platform, Enterprise Edition [mailto:J2EE-INTEREST@(protected)] On Behalf Of Srinivasa Sai Chakravarthy V (CTC) Sent: Friday, October 01, 2004 4:08 PM To: J2EE-INTEREST@(protected) Subject: Re: ResultSetInPool
You can have a thread which will check the updated timestamp of the property file.Then reload the file once it happend.You can check based on the frequency of changes can happen to file.
Regards, Chakravarthy
-- --Original Message-- -- From: A mailing list for Java(tm) 2 Platform, Enterprise Edition [SMTP:J2EE-INTEREST@(protected)] On Behalf Of Naveen Soni
Sent: Friday, October 01, 2004 2:56 PM To: J2EE-INTEREST@(protected) Subject: Re: ResultSetInPool
Hi All,
I have a servlet deployed on websphere. I have done some initialization in the init() method.
Basically I read from a property file and populate HashMap. Now if I change some values
in the property file, I want the servlet init() to be called again to read the new values. I
don't want to restart the server to load the servlet again. How can I call the init() method
of servlet again without restarting the server.
Please suggest me if something can be done.
Thanks,
Naveen
DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. =========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = "urn:schemas-microsoft-com:vml" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word"><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <TITLE>RE: ResultSetInPool</TITLE>
<META content="MSHTML 6.00.2800.1458" name=GENERATOR><!--[if !mso]> <STYLE>v\:* { BEHAVIOR: url(#default#VML) } o\:* { BEHAVIOR: url(#default#VML) } w\:* { BEHAVIOR: url(#default#VML) } .shape { BEHAVIOR: url(#default#VML) } </STYLE> <![endif]--> <STYLE>@(protected) { font-family: Wingdings; } @(protected) { font-family: Tahoma; } @(protected) Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; } P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman" } LI.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman" } DIV.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman" } A:link { COLOR: blue; TEXT-DECORATION: underline } SPAN.MsoHyperlink { COLOR: blue; TEXT-DECORATION: underline } A:visited { COLOR: #606420; TEXT-DECORATION: underline } SPAN.MsoHyperlinkFollowed { COLOR: #606420; TEXT-DECORATION: underline } P { FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto } SPAN.EmailStyle18 { COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply } DIV.Section1 { page: Section1 } OL { MARGIN-BOTTOM: 0in } UL { MARGIN-BOTTOM: 0in } </STYLE> </HEAD> <BODY lang=EN-US vLink=#606420 link=blue> <DIV dir=ltr align=left><SPAN class=203372511-01102004><FONT face=Arial color=#0000ff size=2>No init() is called only once in lifecycle of servlet.</FONT></SPAN></DIV><BR> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> A mailing list for Java(tm) 2 Platform, Enterprise Edition [mailto:J2EE-INTEREST@(protected)] <B>On Behalf Of </B>Naveen Soni<BR><B>Sent:</B> Friday, October 01, 2004 4:48 PM<BR><B>To:</B> J2EE-INTEREST@(protected)<BR><B>Subject:</B> Re: ResultSetInPool<BR></FONT><BR></DIV> <DIV></DIV> <DIV class=Section1> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks everyone for responding. But I want to know, can how somehow call init() method <o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">of servlet again without restarting the server.<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p>< /SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p>< /SPAN></FONT></P> <DIV> <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> <HR tabIndex=-1 align=center width="100%" SIZE=2> </SPAN></FONT></DIV> <P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN>< /FONT></B><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> A mailing list for Java(tm) 2 Platform, Enterprise Edition [mailto:J2EE-INTEREST@(protected)] <B><SPAN style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Srinivasa Sai Chakravarthy V (CTC)<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Friday, October 01, 2004 4:08 PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> J2EE-INTEREST@(protected)<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: ResultSetInPool</SPAN></FONT><o:p></o:p></P></DIV> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P> <P><FONT face=Arial color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">You can have a thread which will check the updated timestamp of the property file.Then reload the file once it happend.You can check based on the frequency of changes can happen to file.</SPAN></FONT><o:p></o:p></P> <P><FONT face=Arial color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Regards,</SPAN></FONT> <BR><FONT face=Arial color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Chakravarthy</SPAN>< /FONT> <o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=1><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">-- --Original Message-- --</SPAN></FONT> <BR><B><FONT face=Arial size=1><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">From: </SPAN></FONT></B> <FONT face=Arial size=1><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">A mailing list for Java(tm) 2 Platform, Enterprise Edition [SMTP:J2EE-INTEREST@(protected)]</SPAN></FONT><B><SPAN style="FONT-WEIGHT: bold"> </SPAN></B><B><FONT face=Arial size=1><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">On Behalf Of</SPAN></FONT></B><FONT face=Arial size=1><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: Arial"> Naveen Soni</SPAN></FONT><o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><B><FONT face=Arial size=1><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">Sent: </SPAN></FONT></B> <FONT face=Arial size=1><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">Friday, October 01, 2004 2:56 PM</SPAN></FONT> <BR><B><FONT face=Arial size=1><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">To: </SPAN></FONT></B> <FONT face=Arial size=1><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">J2EE-INTEREST@(protected)</SPAN>< /FONT> <BR><B><FONT face=Arial size=1><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">Subject: </SPAN></FONT></B> <FONT face=Arial size=1><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">Re: ResultSetInPool</SPAN></FONT> <o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </SPAN></FONT> <o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi All,</SPAN></FONT> <o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </SPAN></FONT> <o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I have a servlet deployed on websphere. I have done some initialization in the init() method.</SPAN></FONT> <o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Basically I read from a property file and populate HashMap. Now if I change some values</SPAN></FONT> <o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">in the property file, I want the servlet init() to be called again to read the new values. I</SPAN></FONT> <o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">don't want to restart the server to load the servlet again. How can I call the init() method</SPAN></FONT> <o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">of servlet again without restarting the server.</SPAN></FONT> <o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </SPAN></FONT> <o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Please suggest me if something can be done.</SPAN></FONT> <o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </SPAN></FONT> <o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks,</SPAN></FONT> <o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Naveen</SPAN></FONT> <o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </SPAN></FONT> <o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Arial">DISCLAIMER:<BR>This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. </SPAN></FONT><o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Arial">=================================== ======================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help". </SPAN></FONT><o:p></o:p></P> <P style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Arial">=================================== ======================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help". </SPAN></FONT><o:p></o:p></P></DIV> <P></P> <P>DISCLAIMER:<BR>This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. =========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help". <P>=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help". <P></P></BODY></HTML> =========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help". <p>
|
|
 |