aspose file tools*
The moose likes Object Relational Mapping and the fly likes Hibernate Connection Pool conf versus App Server Connection Pool conf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Connection Pool conf versus App Server Connection Pool conf" Watch "Hibernate Connection Pool conf versus App Server Connection Pool conf" New topic
Author

Hibernate Connection Pool conf versus App Server Connection Pool conf

Luciano A. Pozzo
Ranch Hand

Joined: Jun 20, 2005
Posts: 112
What are the benefits of using a connection pool configured in the application server (JBoss, Weblogic, etc) than a connection pool configured in the cfg to hibernate?
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

Your connection pooling, and efficient use of connections is an absolutely critical part of your entire architecture. Working with WebSphere, I always prefer to defer to WebSphere connection pooling. Why? Bias perhaps, but I like the idea of offloading this important work to the server provider. I'm assuming the server vendor has put more work into making their pooling services more reliable and robust than the ones that are managed and maintained within a give web app or ejb app. Plus, if something goes wrong, I've got the vendor's 'throat to choke.' If something goes wrong with Hibernate connection pooling, whose throat do you go for? With IBM, there's always a sales guy with a sore neck willing to offer support.

-Cameron McKenzie
Luciano A. Pozzo
Ranch Hand

Joined: Jun 20, 2005
Posts: 112
Hi Cameron,

I agree, but let us suppose that I am using JBoss and I don't have support. So, there is a benefit (maybe performance, manageability, etc)? Or is the same in both cases?

Thank-you
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

Actually, I've always found that JBoss had the best paid support out there, but that's another story.

Beyond just trusting the vendor, I'm not sure of any definitive benefits. Maybe someone else can pipe in? Even my justification is more based on "Fear, Uncertainty and Doubt" as opposed to any real or calculated metrics or comparisons.

-Cameron McKenzie
Luciano A. Pozzo
Ranch Hand

Joined: Jun 20, 2005
Posts: 112
Thank's Cameron.
Benjamin Winterberg
Ranch Hand

Joined: Sep 19, 2007
Posts: 36
I'm using an Apache DBCP datasource with hibernate. Works perfectly. There's no magic around pooling database connections. ;)


Hibernate DAOs with Spring | Separation of Concerns | Eclipse Code Templates | more...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate Connection Pool conf versus App Server Connection Pool conf