Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Poolman: Is it possible to set password at runtime?

843854Feb 19 2004 — edited Feb 20 2004
Hi,

The poolman.xml looks like:
....
<datasource>
<dbname>dbname</dbname>
<jndiName>jndiname</jndiName>
<driver>oracle.jdbc.driver.OracleDriver</driver>
<url>jdbc:oracle:oci8:@db</url>
<username>user</username>
<password/>
</datasource>
...
I don't want to put the password in the poolman.xml as plaintext, so I want to set it at runtime...
But the problem is, it seems that the poolman tries to make connection by using the metadata in the xml file, before I set the correct password. So I got the "invalid username/password; logon denied" exception...

Any suggestion will be appreicated!

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 19 2004
Added on Feb 19 2004
4 comments
173 views