pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
SSL and PGPoolingDataSource
2+ messages / 2 participants
[nested] [flat]

* SSL and PGPoolingDataSource
@ 2010-02-23 10:57  Oleg Vasylenko <olegvvasylenko@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Oleg Vasylenko @ 2010-02-23 10:57 UTC (permalink / raw)
  To: pgsql-jdbc

Hi, everybody.

Trying to create PGPoolingDataSource with SSL support I found that 
PGPoolingDataSource.initialize()  sends no information to new 
PGConnectionPoolDataSource object about SSL status, and as a result it's 
impossible to create a Connection with ssl.

I think it's necessary add two code row like shown below.

public abstract class AbstractJdbc23PoolingDataSource extends 
BaseDataSource
{
.......
..
  public void initialize() throws SQLException
    {
        synchronized (lock )
        {
            source = createConnectionPool();
            source.setDatabaseName(getDatabaseName());
            source.setPassword(getPassword());
            source.setPortNumber(getPortNumber());
            source.setServerName(getServerName());
            source.setUser(getUser());

<<<< MAY BE  ADD A FEW ROW HERE  >>>>>
            
             source.setSssl(getSsl());
             source.setSslfactory(getSslFactory());
<<<------------------------------------------>>>


            while (available.size() < initialConnections)
            {
                available.push(source.getPooledConnection());
            }
            initialized = true;
        }
  }

.......
..
.
}






^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: SSL and PGPoolingDataSource
@ 2010-05-01 15:47  Kris Jurka <books@ejurka.com>
  parent: Oleg Vasylenko <olegvvasylenko@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Kris Jurka @ 2010-05-01 15:47 UTC (permalink / raw)
  To: Oleg Vasylenko <olegvvasylenko@gmail.com>; +Cc: pgsql-jdbc



On Tue, 23 Feb 2010, Oleg Vasylenko wrote:

> Trying to create PGPoolingDataSource with SSL support I found that 
> PGPoolingDataSource.initialize()  sends no information to new 
> PGConnectionPoolDataSource object about SSL status, and as a result it's 
> impossible to create a Connection with ssl.
>

Fixed in CVS.

Kris Jurka



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2010-05-01 15:47 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-02-23 10:57 SSL and PGPoolingDataSource Oleg Vasylenko <olegvvasylenko@gmail.com>
2010-05-01 15:47 ` Kris Jurka <books@ejurka.com>

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