Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
ResultSetInPool

ResultSetInPool

2004-10-01       - By Naveen Soni

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

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".

========================================================================
=== 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".


<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft
-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http:
//www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[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]-->
<title>RE: ResultSetInPool</title>
<style>
<!--
/* Font Definitions */
@(protected)
       {font-family:Wingdings;
       panose-1 (See http://ose-1.ora-code.com):5 0 0 0 0 0 0 0 0 0;}
@(protected)
       {font-family:Tahoma;
       panose-1 (See http://ose-1.ora-code.com):2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
       {margin:0in;
       margin-bottom:.0001pt;
       font-size:12.0pt;
       font-family:"Times New Roman";}
a:link, span.MsoHyperlink
       {color:blue;
       text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
       {color:#606420;
       text-decoration:underline;}
p
       {mso-margin-top-alt:auto;
       margin-right:0in;
       mso-margin-bottom-alt:auto;
       margin-left:0in;
       font-size:12.0pt;
       font-family:"Times New Roman";}
span.EmailStyle18
       {mso-style-type:personal-reply;
       font-family:Arial;
       color:navy;}
@(protected) Section1
       {size:8.5in 11.0in;
       margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
       {page:Section1;}
/* List Definitions */
@(protected) l0
       {mso-list-id:566496388;
       mso-list-template-ids:-1079739198;}
@(protected) l0:level1
       {mso-level-number-format:bullet;
       mso-level-text:\F0B7;
       mso-level-tab-stop:.5in;
       mso-level-number-position:left;
       text-indent:-.25in;
       mso-ansi-font-size:10.0pt;
       font-family:Symbol;}
ol
       {margin-bottom:0in;}
ul
       {margin-bottom:0in;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink="#606420">

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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 size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>of servlet again without restarting the
server.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;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 size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p><font size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:blue'>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 size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:blue'>Regards,</span></font> <br>
<font size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:blue'>Chakravarthy</span></font> <o:p></o:p></p>

<p style='margin-left:.5in'><font size=1 face=Arial><span style='font-size:
7.5pt;font-family:Arial'>-- --Original Message-- --</span></font> <br>
<b><font size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial;
font-weight:bold'>From:&nbsp;&nbsp;</span></font></b> <font size=1 face=Arial>
<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 size=1 face=Arial><span
style='font-size:7.5pt;font-family:Arial;font-weight:bold'>On Behalf Of</span><
/font></b><font
size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'> Naveen Soni<
/span></font><o:p></o:p></p>

<p style='margin-left:.5in'><b><font size=1 face=Arial><span style='font-size:
7.5pt;font-family:Arial;font-weight:bold'>Sent:&nbsp;&nbsp;</span></font></b>
<font
size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'>Friday,
October 01, 2004 2:56 PM</span></font> <br>
<b><font size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial;
font-weight:bold'>To:&nbsp;&nbsp;&nbsp;&nbsp;</span></font></b> <font size=1
face=Arial><span style='font-size:7.5pt;font-family:Arial'>J2EE-INTEREST@(protected)
.SUN.COM</span></font>
<br>
<b><font size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial;
font-weight:bold'>Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><
/font></b>
<font size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'>Re:
ResultSetInPool</span></font> <o:p></o:p></p>

<p style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font> <o:p
></o:p></p>

<p style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>Hi All,</span></font> <o
:p></o:p></p>

<p style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font> <o:p
></o:p></p>

<p style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>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:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>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:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>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:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>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:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>of servlet again without
restarting the server.</span></font> <o:p></o:p></p>

<p style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font> <o:p
></o:p></p>

<p style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>Please suggest me if
something can be done.</span></font> <o:p></o:p></p>

<p style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font> <o:p
></o:p></p>

<p style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>Thanks,</span></font> <o
:p></o:p></p>

<p style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>Naveen</span></font> <o:p
></o:p></p>

<p style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font> <o:p
></o:p></p>

<p style='margin-left:.5in'><font size=3 face=Arial><span style='font-size:
12.0pt;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:.5in'><font size=3 face=Arial><span style='font-size:
12.0pt;font-family:Arial'>=====================================================
======================
To unsubscribe, send email to listserv@(protected) and include in the body of
the message &quot;signoff J2EE-INTEREST&quot;. For general help, send email to
listserv@(protected) and include in the body of the message &quot;help&quot;.
</span></font><o:p></o:p></p>

<p style='margin-left:.5in'><font size=3 face=Arial><span style='font-size:
12.0pt;font-family:Arial'>=====================================================
======================
To unsubscribe, send email to listserv@(protected) and include in the body of
the message &quot;signoff J2EE-INTEREST&quot;. For general help, send email to
listserv@(protected) and include in the body of the message &quot;help&quot;.
</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. <
/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>
===========================================================================
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>

©2008 junlu.com - Jax Systems, LLC, U.S.A.