From: | Kris Jurka <books(at)ejurka(dot)com> |
---|---|
To: | Robert Spies <thewilford(at)gmail(dot)com> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Jdbc3PoolingDataSource ssl question |
Date: | 2007-02-02 23:50:30 |
Message-ID: | Pine.BSO.4.64.0702021848560.29805@leary2.csoft.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On Fri, 2 Feb 2007, Robert Spies wrote:
> Hello, I am using the Jdbc3PoolingDataSource to set up a
> connection pool. I am using it in the following manner:
>
> Jdbc3PoolingDataSource source = new Jdbc3PoolingDataSource();
> source.setDataSourceName("DB data source");
> source.setServerName("localhost");
> source.setDatabaseName("test");
> source.setUser("testuser");
> source.setPassword("testpassword");
> source.setMaxConnections(10);
> ....
> Connection con = source.getConnection();
>
> The problem is that I want to use ssl when connection to the database,
> but I cannot figure out how to enable ssl with the
> Jdbc3PoolingDataSource. Can anyone help me? Thanks.
>
Unfortunately we need something like source.setSSL(true) or similar, but
it is not available. I seem to recall a patch to do this being posted to
the list, but it was not applied.
Kris Jurka
From | Date | Subject | |
---|---|---|---|
Next Message | j.random.programmer | 2007-02-03 03:58:42 | PreparedStatements, LIKE and the % operator |
Previous Message | Robert Spies | 2007-02-02 23:34:05 | Jdbc3PoolingDataSource ssl question |