• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Proxool/Hibernate

 
Jamie Lee
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I'm trying to use proxool with hibernate, and when I open more connections than I have allotted for the maximum connections property, I get an error saying there aren't any available connections. Isn't the connection supposed to wait for a free connection from the pool? Isn't this the point of connection pooling?

Does anyone know of any resources for getting started with hibernate/proxool? I don't need to know how to configure them, I need to know how to start actually using the pool with sessions...

Any help would be greatly appreciated! Thanks!
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our Hibernate forum.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, Jamie it will wait, but only for a specified time. In Connection Pools there is a configuration which is a timeout for waiting threads to wait for a Connection. If that time expires, then an Exception, exactly like the one you get, gets thrown. Otherwise, it is feasable that the client would wait forever, which is not a nice thing to do. Just like getting behind the person who has way over 10 items in the 10 items or less line.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic