• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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

 
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 8946
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, hibernate supports connection pooling.
 
Pradeep bhatt
Ranch Hand
Posts: 8946
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
My favorite is a chocolate cupcake with white frosting and tiny ad sprinkles.
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic