Unix Technical Forum

Jdbc3PoolingDataSource ssl question

This is a discussion on Jdbc3PoolingDataSource ssl question within the pgsql Interfaces jdbc forums, part of the PostgreSQL category; --> Hello, I am using the Jdbc3PoolingDataSource to set up a connection pool. I am using it in the following ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces jdbc

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008, 12:34 AM
Robert Spies
 
Posts: n/a
Default Jdbc3PoolingDataSource ssl question

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.

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-16-2008, 12:34 AM
Kris Jurka
 
Posts: n/a
Default Re: Jdbc3PoolingDataSource ssl question



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

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com