aspose file tools*
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
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: 1511
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: 12678
    
    5
You could use HttpURLConnection to do a HEAD request to some known URL every N seconds...

Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Checking Server is Up or Not from Client
 
Similar Threads
How to reload a page on client machine at some server(context) event?
Opening Pop up WIndow from action class
RMI Callback - Help Needed!
how can I detect liveliness of a socket connection?
Character set encoding issue