-->
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: Session/Connection question
PostPosted: Mon Nov 03, 2008 10:45 am 
Newbie

Joined: Mon Oct 27, 2008 3:27 pm
Posts: 7
Hi everyone.

The other day I was facing a strange issue, for some reason my Datasource (DBCP) was throwing an error. Exhausted pool. So at first I was thinking I was leaking connections due to sessions not being recovered.
Debugging the application showed I was recovering all sessions. It looks like once I opened the session hibernate asked for a connection to the Datasource, and for some reason it asked later for another connection. I found the guys of spring implemented a wrapper around the datasource which will return a proxy connection object, that once it is really needed it ask for the underlying datasource to get a connection (LazyConnectionDataSourceProxy). So have anyone experienced something similar. If so check this url:
http://static.springframework.org/sprin ... Proxy.html

P.S. Also does anyone know how can I deal with my previous post?


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.