i have a GUI application that needs to check that it is connected to a database every 30 - 60 secs. can this be done with java threads or do i need to look somewhere different. obviously i need the application to be fully useable whilst it is performing this.
Fungus1487
55
Posting Pro in Training
Recommended Answers
Jump to PostBest use a Timer and TimerTask, that's what they're there for after all :)
Creating your own mechanism using threads (which a Timer no doubt uses under the hood) is certainly possible, but why do things the hard way?
Do mind that whatever option you choose there are …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.