• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt in connection pooling

 
Sriram.Narayanan Thiagarajan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Connection pooling

does all connections go through only one session or
they create their own session.


Thanks in advance
Sriram
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34965
378
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sriram,
Yes, a database session is open until the connection is closed - not just returned to the pool. This is how we can get a StaleConnection error. Sometimes a connection is in the pool that is no longer valid.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic