-->
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.  [ 4 posts ] 
Author Message
 Post subject: Nasty Connection Pool Bug
PostPosted: Wed Jan 12, 2011 12:08 pm 
Newbie

Joined: Wed Jan 12, 2011 12:02 pm
Posts: 3
I think I've found a bug that is causing me problems in the handling of Proxool connection pools.

The close() method of ProxoolConnectionProvider closes _ALL_ pools handled by Proxool and not just the one being referred to by proxoolAlias.

It is an easy fix I think:

ProxoolFacade.shutdown(0);

Should be replaced with something like:

ProxoolFacade.removeConnectionPool(proxoolAlias);

Please advise.


Top
 Profile  
 
 Post subject: Re: Nasty Connection Pool Bug
PostPosted: Wed Jan 12, 2011 12:24 pm 
Newbie

Joined: Wed Jan 12, 2011 12:02 pm
Posts: 3
Actually it looks like filthy witchcraft happens to proxoolAlias so the actual fix seems to be:

ProxoolFacade.removeConnectionPool(proxoolAlias.substring(PROXOOL_JDBC_STEM.length()));


Top
 Profile  
 
 Post subject: Re: Nasty Connection Pool Bug
PostPosted: Thu Jan 13, 2011 6:17 am 
Newbie

Joined: Wed Jan 12, 2011 12:02 pm
Posts: 3
Have raised as HHH-5838.


Top
 Profile  
 
 Post subject: Re: Nasty Connection Pool Bug
PostPosted: Thu Jan 13, 2011 7:20 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
thank you!
impressive that such a bug wasn't noticed before.

_________________
Sanne
http://in.relation.to/


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

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.