Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checking Server is Up or Not from Client

 
Ajay Njallacattu
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there a way to check automatically whether the server is UP or not or the Client is still activily connected to the server or not from a client.

This is a java standalone application using WEblogic server.


Is there any way to do this.


Regards
 
Akhilesh Trivedi
Ranch Hand
Posts: 1599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Automatically means? Are you expecting the server to reach to the clients?
 
Ajay Njallacattu
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Automatically means... The Client need to check on a regular interval whether the server up or not..

Is there a possible solution for that..

Because this is a thick client application, only when it save the data or communicate to server it will get to know the status of server. Otherwise you can continue working on locally means client side

Regards
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use HttpURLConnection to do a HEAD request to some known URL every N seconds...

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic