Click here to Skip to main content
15,889,839 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a database server and i remotely connected to it. Some times net down then exception raised MySQL exception not handle database couldnot be found.
I handled it in try catch of MYSQLException i want when database disconnected it locate for connection until it connect as like in skype it tries or tries
Any idea?
Posted
Comments
Vedat Ozan Oner 19-Jul-14 5:39am    
as far as I understand you try to keep a connection open as long as your application runs. this is not a good approach. open a connection when only you need it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900