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!

Encryption JDBC/Connection Pooling and Tomcat

416230May 24 2004
Hello,
I'm trying to set up a secure thin-jdbc connection from Tomcat 4.0.6 to an Oracle 9i database. If I configure the database to require encryption(sqlnet.ora) without any changes on the client(Tomcat) side, the trafic is encrypted. The problem is, that I have to configure the client to require the encryption, and the database to accept unencrypted connections too.
The Oracle JDBC-Guide tells me to use a properties file to pass the parameters(oracle.net.encryption_client, ..). But how can I do this when I'm using JNDI?

In my tomcat server.xml I tryied to insert

<Resource name="jdbc/clix" auth="Container"
.
.
<ResourceParams name="jdbc/clix">
.
.
. <parameter>
<name>oracle.net.encryption_client</name>
<value>REQUIRED</value>
</parameter>

<parameter>
<name>oracle.net.encryption_types_client</name>

If I use this configuration, trafic is not encrypted. Does anyone have an idea or know documentation about how to do this?

Best regards, Peter

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 21 2004
Added on May 24 2004
0 comments
883 views