Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Q 4 C. Bauer & G. King (5): Hibernate handles also connection pooling?

 
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear authors,

I was just talking to a colleague, who
mentioned sharing db sessions in order
to relieve the back end of the infamous
connection problems.

Does Hibernate touch this area, or
is it out of it's scope?

Cheers,

Gian Franco Casula
 
Ranch Hand
Posts: 8943
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, hibernate supports connection pooling.
 
Pradeep bhatt
Ranch Hand
Posts: 8943
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can read the qucik start guide here
http://www.hibernate.org/hib_docs/reference/en/html/quickstart.html
 
Gian Franco
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does this connection pooling also cross the
boundaries of a single web-application, that's
to say, can concurrent users fish from the
pool?

Cheers,

Gian Franco Casula
 
author
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate does not implement connection pooling itself. Instead, it gets a JDBC connection from wherever you tell it to ;-)

If you use an application server datasource (which is best), the rules will be defined by the J2EE spec.
 
Gian Franco
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Gavin King:
Hibernate does not implement connection pooling itself. Instead, it gets a JDBC connection from wherever you tell it to ;-)

If you use an application server datasource (which is best), the rules will be defined by the J2EE spec.



The big picture is becoming clear, thanks
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic