ResultSetInPool 2004-10-01 - By Srinivasa Sai Chakravarthy V (CTC)
Back
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". >
=========================================================================== 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 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.2"> <TITLE>RE: ResultSetInPool</TITLE> </HEAD> <BODY> <BR>
<P><FONT COLOR="#0000FF" SIZE=2 FACE="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.< /FONT></P>
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Regards,</FONT> <BR><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Chakravarthy</FONT> </P> <UL> <P><FONT SIZE=1 FACE="Arial">-- --Original Message-- --</FONT> <BR><B><FONT SIZE=1 FACE="Arial">From: </FONT></B> <FONT SIZE=1 FACE ="Arial">A mailing list for Java(tm) 2 Platform, Enterprise Edition [SMTP:J2EE -INTEREST@(protected)]</FONT><B> <FONT SIZE=1 FACE="Arial">On Behalf Of</FONT>< /B><FONT SIZE=1 FACE="Arial"> Naveen Soni</FONT></P>
<P><B><FONT SIZE=1 FACE="Arial">Sent: </FONT></B> <FONT SIZE=1 FACE= "Arial">Friday, October 01, 2004 2:56 PM</FONT> <BR><B><FONT SIZE=1 FACE="Arial">To: </FONT></B> <FONT SIZE=1 FACE="Arial">J2EE-INTEREST@(protected)</FONT> <BR><B><FONT SIZE=1 FACE="Arial">Subject: </FONT></B> <FONT SIZE=1 FACE="Arial">Re: ResultSetInPool</FONT> </P>
<P><FONT COLOR="#000080" SIZE=2 FACE="Arial">?</FONT> </P>
<P><FONT COLOR="#000080" SIZE=2 FACE="Arial">Hi All,</FONT> </P>
<P><FONT COLOR="#000080" SIZE=2 FACE="Arial">?</FONT> </P>
<P><FONT COLOR="#000080" SIZE=2 FACE="Arial">I have a servlet deployed on websphere. I have done some initialization in the init() method.</FONT> </P>
<P><FONT COLOR="#000080" SIZE=2 FACE="Arial">Basically I read from a property file and populate HashMap. Now if I change some values</FONT> </P>
<P><FONT COLOR="#000080" SIZE=2 FACE="Arial">in the property file, I want the servlet init() to be called again to read the new values. I</FONT> </P>
<P><FONT COLOR="#000080" SIZE=2 FACE="Arial">don't want to restart the server to load the servlet again. How can I call the init() method</FONT> </P>
<P><FONT COLOR="#000080" SIZE=2 FACE="Arial">of servlet again without restarting the server.</FONT> </P>
<P><FONT COLOR="#000080" SIZE=2 FACE="Arial">?</FONT> </P>
<P><FONT COLOR="#000080" SIZE=2 FACE="Arial">Please suggest me if something can be done.</FONT> </P>
<P><FONT COLOR="#000080" SIZE=2 FACE="Arial">?</FONT> </P>
<P><FONT COLOR="#000080" SIZE=2 FACE="Arial">Thanks,</FONT> </P>
<P><FONT COLOR="#000080" SIZE=2 FACE="Arial">Naveen</FONT> </P>
<P><FONT COLOR="#000080" SIZE=2 FACE="Arial">?</FONT> </P>
<P><FONT FACE="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. </FONT></P>
<P><FONT FACE="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". </FONT></P>
<P><FONT FACE="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". </FONT></P> </UL> </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>
|
|