Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Corrupted connection

 
Rajesh Pathak
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What will happen when we get a corrupted connection object for a connection pool? Can the JDBC program recover from it?
Thanks in advance
 
Sajid Insaf
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajesh,
Not sure what you mean by a corrupted connection object. Usually drivers are designed to handle any abnormalities while obtaining a connection or using a connection.
Having implemented the JDBC APIs, the driver should raise exceptions in such cases which would then be thrown up to the application.
Sajid.
 
Rajesh Pathak
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sajid.
Actually this was a question asked to me in an interview. So, I am equally not sure what the interviewer wanted as answer :roll:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic