Hi Tore,
I am using oracle jdbc driver.
The documentation tells me to do this:
String url = "jdbc:oracle:thin..DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)
(HOST=servername)(PORT=2484))
(CONNECT_DATA=(SERVICE_NAME=servicename)))");
Properties props = new Properties();
props.setProperty("user", "scott");
props.setProperty("password", "tiger");
props.setProperty("oracle.net.ssl_cipher_suites",
"(SSL_DH_anon_WITH_3DES_EDE_CBC_SHA, SSL_DH_anon_WITH_RC4_128_MD5,
SSL_DH_anon_WITH_DES_CBC_SHA)"};
Connection conn=DriverManager.getConnection(url,props);
The cayenne configuration file DomainNode.driver is like this:
<?xml version="1.0" encoding="utf-8"?>
<driver project-version="2.0" class="oracle.jdbc.driver.OracleDriver">
<url value="jdbc:oracle:thin..DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)
(HOST=myhostname)(PORT= 1521))(CONNECT_DATA=(SERVICE_NAME=myservicename)))"/>
<connectionPool min="1" max="1" />
<login userName="scott" password="tiger"/>
</driver>
What I am struggling is how I add property oracle.net.ssl_cipher_suites to the configuration file?
Manay thanks
Elena
-----Original Message-----
From: Tore Halset [mailto:halse..vv.ntnu.no]
Sent: 14 June 2008 22:30
To: use..ayenne.apache.org
Subject: Re: Configuring SSL
On 13. juni. 2008, at 17.33, Elena Doyle wrote:
> How can I configure SSL in DomeinNode.driver.xml. Can somebody give me
> an example.
Do you mean SSL connection between your cayenne based application and the database? If so, this is a
jdbc setup issue. Please take a look at your jdbc documentation. What sort of database are you
using?
Regards,
- Tore.
This archive was generated by hypermail 2.0.0 : Mon Jun 16 2008 - 05:55:38 EDT