![]() Topic awaiting preservation: Anyone has example to keep db info in a .properties file in servlet? (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Australia |
![]() 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 |
![]() The poster has demanded we remove all his contributions, less he takes legal action. |
Bipolar (III) Inmate From: New Jersey, USA |
![]() Since the properties file is just a test file..I have my connection info listed as the following |
Bipolar (III) Inmate From: Australia |
![]() Rhino, |
Bipolar (III) Inmate From: New Jersey, USA |
![]() Properties properties = new Properties(); |