Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id CCB139FB262 for ; Fri, 2 Feb 2007 19:50:34 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 75296-02 for ; Fri, 2 Feb 2007 19:50:31 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with ESMTP id B158A9FAC76 for ; Fri, 2 Feb 2007 19:50:31 -0400 (AST) Received: by mail63.csoft.net (Postfix, from userid 1112) id B98F7F57F; Fri, 2 Feb 2007 18:50:30 -0500 (EST) Date: Fri, 2 Feb 2007 18:50:30 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: Robert Spies cc: pgsql-jdbc@postgresql.org Subject: Re: Jdbc3PoolingDataSource ssl question In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/21 X-Sequence-Number: 16577 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