• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDBC Connection after DB is up

 
Sanjeev Desai
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a application running on tomcat 6 and it using the oracle as database. At some point of time my Oracle DB went down. After some time the DB is up.
Now will my tomcat application keep running normally or it will have some DB connection problems? Do I need to restart my tomcat application?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36007
422
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sanjeev,
Welcome to JavaRanch!

If you had a connection open at the time, it would become invalid. A new connection would be fine. Restarting certainly wouldn't hurt matters. Also note that connection pols behave differently depending on the implementation.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!