-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: SettingsFactory Possible Bug
PostPosted: Fri Jul 22, 2005 9:30 pm 
Newbie

Joined: Fri Jul 22, 2005 9:14 pm
Posts: 10
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.