Re: How can i use threads to connect to a database ?
Monday, October 15, 2001 03:26 AM
while starting the application create a new thread which has all
jdbc driver and connection related stuff. If it throws any exception
then catch the exception and use Thread.sleep() to wait for 30 seconds.
And again try to connect. Even if it fails now , show a dialog box with
the message you are interested and come out from the application. I
hope this solves your problem. If you need more info or in case of
any doubts let me know