aspose file tools
The moose likes Object Relational Mapping and the fly likes problem in database connection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "problem in database connection" Watch "problem in database connection" New topic
Author

problem in database connection

Joseph Bashir
Ranch Hand

Joined: Jun 16, 2004
Posts: 41
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

Joined: Feb 15, 2005
Posts: 4864
Moving to the Object Relational Mapping Forum


Merrill
Consultant, Sima Solutions
Scott Johnson
Ranch Hand

Joined: Aug 24, 2005
Posts: 518
Why do you think the database connection is lost? What exception is thrown if you try to execute a select statement?
 
IntelliJ Java IDE
 
subject: problem in database connection
 
Threads others viewed
Problem with ORM by Weblogic
Servlet hang when performing to much insert function
ResultSet
Network Adaptor Could Not Establish Connection
Form-based authentication
developer file tools