-->
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: Hibernate connection pool problem in Thread pool
PostPosted: Wed Nov 08, 2006 11:50 pm 
Newbie

Joined: Wed Nov 08, 2006 11:03 pm
Posts: 1
Location: Chennai, India
Hi,
We are using Hibernate 3.1 with Oracle 10g in a WAS environment for a web application using STRUTS. We use connection pooling provided by WAS and have implemented Thread pooling using edu.emory.mathcs.backport.java.util.concurrent Api.

The problem we face is that whenever the connection pool limit is reached the thread which calls hibernate opensession hangs. we use session-per-operation pattern and the session never gets closed when we call it via thread from thread pool.

From Hibernate tutorials , we find that session object will be attached to local thread when using JDBC. This session object never gets closed even after the thread has completed all its works. So when the same thread is being re-used, it is not able to open new session. It hangs at point session.beginTransaction.

We have used session.close and session.flush in finally block.

Can somebody help us in solving the issue as to how to detach a session object from the thread or to close the session properly?

_________________
Thanks and Regards
Anand Inbasekaran

"Give me more medals, I would win you any war"


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.