• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Gian Franco
blacksmith
Ranch Hand
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
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, hibernate supports connection pooling.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • 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
Ranch Hand
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
 
Gavin King
author
Ranch Hand
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
Ranch Hand
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic