SSL and PGPoolingDataSource
От | Oleg Vasylenko |
---|---|
Тема | SSL and PGPoolingDataSource |
Дата | |
Msg-id | 4B83B48A.6070206@gmail.com обсуждение исходный текст |
Ответы |
Re: SSL and PGPoolingDataSource
|
Список | 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; } } ....... .. . }
В списке pgsql-jdbc по дате отправления: