git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@6536 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Christian Bauer 2005-04-26 21:24:26 +00:00
parent b89f372ebd
commit cc7621952a
1 changed files with 15 additions and 6 deletions

View File

@ -672,12 +672,15 @@ hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]></programlisting>
<literal>hibernate.connection.aggressive_release</literal> <literal>hibernate.connection.aggressive_release</literal>
</entry> </entry>
<entry> <entry>
Enables Hibernate to aggressively release JDBC Connections, provided this behavior is Enables Hibernate to aggressively release JDBC Connections, if supported
supported by the configured <literal>ConnectionProvider</literal>. The default Hibernate supported by the <literal>ConnectionProvider</literal>. By default a JDBC
behavior is to cache a Connection for the entire lifespan (excluding disconnect/reconnect connection is held for the lifespan (excluding disconnected state) of the Session;
calls) of the Session; this does not play well inside managed environments implementing this does not play well inside managed environments implementing connection
Connection "containment" checks. Thus, setting this to true is recommended in managed "containment" checks. Recommended in managed environments.
environments. <para>
<emphasis role="strong">eg.</emphasis>
<literal>true</literal> | <literal>false</literal>
</para>
</entry> </entry>
</row> </row>
<row> <row>
@ -1414,6 +1417,12 @@ hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]></programlisting>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
<para>
Depending on your environment, you might have to set the configuration option
<literal>hibernate.connection.aggressive_release</literal> to true if your
application server shows "connection containment" exceptions.
</para>
<sect2 id="configuration-optional-transactionstrategy" revision="3"> <sect2 id="configuration-optional-transactionstrategy" revision="3">
<title>Transaction strategy configuration</title> <title>Transaction strategy configuration</title>