• Post Reply Bookmark Topic Watch Topic
  • New Topic

Checking Services periodically.  RSS feed

 
Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.
Varun.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!