• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate Connection Pool conf versus App Server Connection Pool conf

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank's Cameron.
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using an Apache DBCP datasource with hibernate. Works perfectly. There's no magic around pooling database connections. ;)
 
reply
    Bookmark Topic Watch Topic
  • New Topic