pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Robert Spies <thewilford@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Jdbc3PoolingDataSource ssl question
Date: Fri, 2 Feb 2007 18:50:30 -0500 (EST)
Message-ID: <Pine.BSO.4.64.0702021848560.29805@leary2.csoft.net> (raw)
In-Reply-To: <b54c62f50702021534if008fabpf10f60b528764c1b@mail.gmail.com>
References: <b54c62f50702021534if008fabpf10f60b528764c1b@mail.gmail.com>



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



view thread (2+ messages)

Message-ID: <Pine.BSO.4.64.0702021848560.29805@leary2.csoft.net>
Permalink:  ../Pine.BSO.4.64.0702021848560.29805@leary2.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0702021848560.29805@leary2.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, thewilford@gmail.com
  Subject: Re: Jdbc3PoolingDataSource ssl question
  In-Reply-To: <Pine.BSO.4.64.0702021848560.29805@leary2.csoft.net>
  References: <b54c62f50702021534if008fabpf10f60b528764c1b@mail.gmail.com> <Pine.BSO.4.64.0702021848560.29805@leary2.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox