Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Connection Pool conf versus App Server Connection Pool conf

 
Luciano A. Pozzo
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank's Cameron.
 
Benjamin Winterberg
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using an Apache DBCP datasource with hibernate. Works perfectly. There's no magic around pooling database connections. ;)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic