users@glassfish.java.net

Re: Connection timed out

From: <glassfish_at_javadesktop.org>
Date: Thu, 01 Jul 2010 08:47:14 PDT

Does anyone know how to set the query timeout value?

I am using glassfish v3, postgres, and hibernate.

I have tried
persistence.xml
<properties>
  <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
  <property name="javax.persistence.query.timeout" value="120000"/>
</properties>

glassfish admin console Resources->JDBC->Connection Pool->Max Wait Time: 120000

Still the query is timming out after 20 - 21 seconds.
[Message sent by forum member 'glenmiller']

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