3 cheers man!!!
It works!
Simple and good workaround.....
Thanks a lot!
Regards
Praveen Tapashetti
Mascot Systems Ltd
Chennai, India
Tel: 91-44-2301236 Extn: 3321
-----Original Message-----
From: To [EMAIL PROTECTED]
[SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, March 06, 2001 3:00 AM
To: [EMAIL PROTECTED]
Subject: Re: resource bundle problem
Hi ,
Do not use the resourcebundle API instead use properties file
object ,
Load the propertiesobject with properties file content and then read
the
content
below code may help solve this problem
public Properties defaultProps;
defaultProps = new Properties();
InputStream in =
getClass().getResourceAsStream("/migration.properties");
defaultProps.load(in);
in.close();
ORACLE_DRIVER_TYPE=(String)defaultProps.get("oracle.db.driver.type");
SYBASE_DRIVER_TYPE=(String)defaultProps.get("sybdb.db.driver.type");
--------
---
etc
bye
sreenivas
> sreeni
>
> Document Workflow Group
> Global Corporate Investment Banking
> Bank of America
> 312-974-6794(Business)
> 630-787-0646(Home)
>
>
> -----Original Message-----
> From: Praveen Tapashetti [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, March 05, 2001 8:58 AM
> To: [EMAIL PROTECTED]
> Subject: resource bundle problem
>
> Hi,
>
> I am using resource bundle (properties file) to store some
variables and
> call them in the servlet.
> First time when the servlet is loaded, resource bundle variables
are read.
>
> But when I change resource bundle variables ( in the properties
file) and
> servlet is invoked, it still takes old values as it will be cached
in JVM
> at
> server side.
>
> But I want a feature in which every time properties file is
changed, new
> values should be loaded without restarting the server. Is there
any
> work-around for this??
> Regards
> Praveen Tapashetti
> Mascot Systems Ltd
> Chennai, India
>
> Tel: 91-44-2301236 Extn: 3321
>
>
__________________________________________________________________________
> _
> 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