• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in database connection

 
Joseph Bashir
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using mysql and hibernate. While running my application, if there is an error or exception thrown, the connection with the database is lost and the connection is not restored until I restart the tomcat. Can somebody please tell me why it happens and how to overcome this problem.

Thanks.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Object Relational Mapping Forum
 
Scott Johnson
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you think the database connection is lost? What exception is thrown if you try to execute a select statement?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic