Hi all,
I'm using Hibernate 3.0.5 as a DAO implementation that sits behind a session bean to load/persist everything against an Oracle 9i database. All on a Weblogic 8.1 SP 2 server.
Since updating from Hibernate 3.0.3 my server logs are filling up with the following log statement:
Code:
03-Jun-2005 09:44:08 org.hibernate.jdbc.ConnectionManager afterStatement
INFO: Skipping aggresive-release due to open resources on batcher
Althought the info message appears to be new in release 3.0.5 (should it be info or a debug?) the cause concerns me. Going by the documentation it states that the default release mode is "on_close", but this message comes from the afterStatement method of org.hibernate.jdbc.ConnectionManager which says that my release mode is actually "after_statement". Does the default change when you use JTA? Or have I configured hibernate incorrectly (config file below)?
Also, I get these messages even though I'm doing a read-only operation, with no lazy-loading classes. The read-only operations are part of a JTA transaction to simplify the code (using the getCurrentSession() method instead of manually acquiring the session), is this the recommended approach to have every EJB call require a transaction as it is when using XA?
Thanks for your time and help!
Andy
My configuration file:
Code:
<hibernate-configuration>
<session-factory>
<!-- Due to a conflict with weblogic of antlr we need to use the classic query parser -->
<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
<!-- As inside a container, as an appropriate DataSource -->
<property name="hibernate.connection.datasource">...</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WeblogicTransactionManagerLookup</property>
<!-- We are using Oracle, so use the appropriate dialect -->
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
<!-- As we are using solely JTA transactions, these 2 parameters are required -->
<property name="hibernate.transaction.flush_before_completion">true</property>
<property name="hibernate.transaction.auto_close_session">true</property>
<!-- The definition of the POJOs -->
<!-- ... -->
</session-factory>
</hibernate-configuration>
[/code]