Topic awaiting preservation: Anyone has example to keep db info in a .properties file in servlet? |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Australia |
posted 09-25-2003 06:16
I am learning JSP/Server and was using connection pooling for database connection using Java servlet. The database information are in the servlet. Can you please tell me how I could make these info in a properties files (for example configuration.properties) which I could edit externally so that I won't have to recompile my servlet each time I change the database password? |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 09-25-2003 13:03
The poster has demanded we remove all his contributions, less he takes legal action. |
Bipolar (III) Inmate From: New Jersey, USA |
posted 09-25-2003 13:50
Since the properties file is just a test file..I have my connection info listed as the following |
Bipolar (III) Inmate From: Australia |
posted 09-26-2003 02:34
Rhino, |
Bipolar (III) Inmate From: New Jersey, USA |
posted 09-26-2003 13:23
Properties properties = new Properties(); |