我一直在使用c3p0池但是我找不到任何关于如何将连接属性添加到c3p0连接池配置XML的信息,任何帮助都将不胜感激。不确定这是否不受支持,任何替代方案都会很棒。感谢
oracle.net.encryption_client=REQUIRED;
oracle.net.encryption_types_client=RC4_256;
oracle.net.crypto_checksum_client=REQUIRED;
oracle.net.crypto_checksum_types_client=MD5
答案 0 :(得分:0)
最后让它发挥作用,这对我有用。
<bean id="myDS" class="com.mchange.v2.c3p0.ComboPooledDataSource"
destroy-method="close"
p:driverClass="${db.driver}"
p:jdbcUrl="${db.url}"
p:acquireIncrement="1"
p:idleConnectionTestPeriod="60"
p:maxPoolSize="${jdbc.pool.size}"
p:acquireRetryAttempts="2"
p:minPoolSize="${pool.initialsize}"
p:testConnectionOnCheckout="true"
p:preferredTestQuery="select 1 from dual">
<property name="properties">
<props>
<prop key="user">${db.username}</prop>
<prop key="password">${db.password}</prop>
<prop key="oracle.net.encryption_client">REQUIRED</prop>
<prop key="oracle.net.encryption_types_client">RC4_256</prop>
<prop key="oracle.net.crypto_checksum_client">REQUIRED</prop>
<prop key="oracle.net.crypto_checksum_types_client">MD5</prop>
</props>
</property>