This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checking Services periodically.

Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have my application using dB and various other remote services.I want to check periodically whether if any of the service is down !
One option is to initialize a Socket to the hostName with any port number. If the host is present, code will throw a ConnectException and if the host is not present, code will through an UnknownHostException.
Is there any other way for that ?
Thanks in advance.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic