I am new to this forum however I believe I have found a bug and I'm asking it here prior to submitting it to the issue tracker.
Environment:
Hibernate-3.0.5
Postgres 7.2.1
SpringFramework 1.2
org.hibernate.cfg.SettingsFactory.buildSettings(Properties props)
line74 makes a call to conn.getMetaData(); By making this call a transaction begins. Then in the finally block of this method a call is made to closeConnections. Within this method the code examines the configured size of the connection pool (I am using the default pool size of 20) with the current size and places the connection on the pool if the current size is less than the configured poolSize. The issue is this...the transaction was never commited before it was placed on the pool. My work around was to set the pool size configuration parameter to 0.
Is this a bug, environment issue, or was my solution the correct way to go about solving this issue.
|