This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Java in General and the fly likes Checking Server is Up or Not from Client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Checking Server is Up or Not from Client" Watch "Checking Server is Up or Not from Client" New topic
Author

Checking Server is Up or Not from Client

Ajay Njallacattu
Ranch Hand

Joined: Nov 21, 2006
Posts: 39
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

Joined: Jun 22, 2005
Posts: 1526
Automatically means? Are you expecting the server to reach to the clients?


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Ajay Njallacattu
Ranch Hand

Joined: Nov 21, 2006
Posts: 39
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

Joined: Mar 22, 2000
Posts: 12769
    
    5
You could use HttpURLConnection to do a HEAD request to some known URL every N seconds...

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Checking Server is Up or Not from Client