users@glassfish.java.net

Postgres and SSL connetionpools

From: <glassfish_at_javadesktop.org>
Date: Wed, 30 Apr 2008 09:44:42 PDT

I'm having some issues configuring Glassfish to use SSL with a postgres DB server (8.2.6) it works fine with out SSL if I put an an exception for the host in question in the conf file on the DB server.

here's what I got in domain.xml

    <jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection
-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method=
"auto-commit" datasource-classname="org.postgresql.ds.PGConnectionPoolDataSource" fail-all-connections="true" idle-timeout-in-seconds="300" i
s-connection-validation-required="true" is-isolation-level-guaranteed="false" lazy-connection-association="false" lazy-connection-enlistment=
"false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="LiferayPool" non-tr
ansactional-connections="false" pool-resize-quantity="2" res-type="javax.sql.ConnectionPoolDataSource" statement-timeout-in-seconds="-1" stea
dy-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
      <property name="user" value="lportal"/>
      <property name="password" value="lportal123"/>
      <property name="portNumber" value="5432"/>
      <property name="databaseName" value="lportal"/>
      <property name="serverName" value="bonsai"/>
      <property name="sslfactory" value="org.postgresql.ssl.NonValidatingFactory"/>
      <property name="ssl" value="on"/>
    </jdbc-connection-pool>

when I do a ping I get

FATAL: no pg_hba.conf entry for host "172.16.80.25", user "lportal", database "lportal", SSL off

SSL is successful with other client (java based) application servers, so it's not a DB server configuration problem.

Based Googleing pulls up next to nothing on the topic so I hope someone has this running can help me out here.
[Message sent by forum member 'jasonczerak' (jasonczerak)]

http://forums.java.net/jive/thread.jspa?messageID=272260