pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedGlassfish ignoring "ssl" property in connection pool of PostgreSQL
4+ messages / 2 participants
[nested] [flat]
* Glassfish ignoring "ssl" property in connection pool of PostgreSQL
@ 2010-03-27 19:20 Nookala Satish Kumar <nosaku@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Nookala Satish Kumar @ 2010-03-27 19:20 UTC (permalink / raw)
To: pgsql-jdbc
Hi,
Glassfish ignoring "ssl" (and sslfactory) property in connection pool of
PostgreSQL. I tried to establish a SSL connection string to PostgreSQL, but
it is not taking. I tried with the normal JDBC URL in a standalone program
and it works. Any ideas?
Here are my connection pool properties in Glassfish:
User: test
DatabaseName: test
Password: test123
ssl: true
sslfactory: org.postgresql.ssl.NonValidatingFactory
ServerName: localhost
PortNumber: 5432
Here is my standalone program which is working fine:
String url = "jdbc:postgresql://localhost:5432/test";
Properties props = new Properties();
props.setProperty("user","test");
props.setProperty("password","test123");
props.setProperty("ssl","true");
props.setProperty("sslfactory","org.postgresql.ssl.NonValidatingFactory");
Connection conn = DriverManager.getConnection(url, props);
stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("select now()");
if (rs.next()) {
System.out.println(rs.getString(1));
}
rs.close();
stmt.close();
conn.close();
Regards,
Satish.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Glassfish ignoring "ssl" property in connection pool of PostgreSQL
@ 2010-05-01 15:47 Kris Jurka <books@ejurka.com>
parent: Nookala Satish Kumar <nosaku@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Kris Jurka @ 2010-05-01 15:47 UTC (permalink / raw)
To: Nookala Satish Kumar <nosaku@gmail.com>; +Cc: pgsql-jdbc
On Sat, 27 Mar 2010, Nookala Satish Kumar wrote:
> Glassfish ignoring "ssl" (and sslfactory) property in connection pool of
> PostgreSQL. I tried to establish a SSL connection string to PostgreSQL, but
> it is not taking. I tried with the normal JDBC URL in a standalone program
> and it works. Any ideas?
>
This has been fixed in CVS.
Kris Jurka
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Glassfish ignoring "ssl" property in connection pool of PostgreSQL
@ 2010-05-01 17:08 Nookala Satish Kumar <nosaku@gmail.com>
parent: Kris Jurka <books@ejurka.com>
0 siblings, 1 reply; 4+ messages in thread
From: Nookala Satish Kumar @ 2010-05-01 17:08 UTC (permalink / raw)
To: Kris Jurka <books@ejurka.com>; +Cc: pgsql-jdbc
Thanks a lot Krish.
Regards,
Satish.
On Sat, May 1, 2010 at 10:47 AM, Kris Jurka <books@ejurka.com> wrote:
>
>
> On Sat, 27 Mar 2010, Nookala Satish Kumar wrote:
>
> Glassfish ignoring "ssl" (and sslfactory) property in connection pool of
>> PostgreSQL. I tried to establish a SSL connection string to PostgreSQL,
>> but
>> it is not taking. I tried with the normal JDBC URL in a standalone program
>> and it works. Any ideas?
>>
>>
> This has been fixed in CVS.
>
> Kris Jurka
>
>
--
|| Satyam Vada, Dharmam Chara ||
|| Matru Devo Bhava, Pitru Devo Bhava ||
|| Acharya Devo Bhava, Atithi Devo Bhava ||
Get Firefox. The browser you can trust.
http://www.spreadfirefox.com/?q=affiliates&id=43194&t=1
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Glassfish ignoring "ssl" property in connection pool of PostgreSQL
@ 2010-05-01 17:09 Nookala Satish Kumar <nosaku@gmail.com>
parent: Nookala Satish Kumar <nosaku@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: Nookala Satish Kumar @ 2010-05-01 17:09 UTC (permalink / raw)
To: Kris Jurka <books@ejurka.com>; +Cc: pgsql-jdbc
*Kris :-)
On Sat, May 1, 2010 at 12:08 PM, Nookala Satish Kumar <nosaku@gmail.com>wrote:
> Thanks a lot Krish.
>
> Regards,
> Satish.
>
>
> On Sat, May 1, 2010 at 10:47 AM, Kris Jurka <books@ejurka.com> wrote:
>
>>
>>
>> On Sat, 27 Mar 2010, Nookala Satish Kumar wrote:
>>
>> Glassfish ignoring "ssl" (and sslfactory) property in connection pool of
>>> PostgreSQL. I tried to establish a SSL connection string to PostgreSQL,
>>> but
>>> it is not taking. I tried with the normal JDBC URL in a standalone
>>> program
>>> and it works. Any ideas?
>>>
>>>
>> This has been fixed in CVS.
>>
>> Kris Jurka
>>
>>
>
>
> --
> || Satyam Vada, Dharmam Chara ||
> || Matru Devo Bhava, Pitru Devo Bhava ||
> || Acharya Devo Bhava, Atithi Devo Bhava ||
>
> Get Firefox. The browser you can trust.
> http://www.spreadfirefox.com/?q=affiliates&id=43194&t=1<http://www.spreadfirefox....;
>
--
|| Satyam Vada, Dharmam Chara ||
|| Matru Devo Bhava, Pitru Devo Bhava ||
|| Acharya Devo Bhava, Atithi Devo Bhava ||
Get Firefox. The browser you can trust.
http://www.spreadfirefox.com/?q=affiliates&id=43194&t=1
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2010-05-01 17:09 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-03-27 19:20 Glassfish ignoring "ssl" property in connection pool of PostgreSQL Nookala Satish Kumar <nosaku@gmail.com>
2010-05-01 15:47 ` Kris Jurka <books@ejurka.com>
2010-05-01 17:08 ` Nookala Satish Kumar <nosaku@gmail.com>
2010-05-01 17:09 ` Nookala Satish Kumar <nosaku@gmail.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