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