aspose file tools*
The moose likes Web Services and the fly likes checking wheather server is down or not Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "checking wheather server is down or not" Watch "checking wheather server is down or not" New topic
Author

checking wheather server is down or not

ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 194
Hi all,
In web services(apache axis),how the client come to know that the server is down.Just calling the server using stubs and if getting exception then or there is some other way also.

In case of client-server communication using sockets,if getting java.net.connectException we can say that server is down or there is some other way also to check wheather server is down or not?
please express your views.

with regards,
ajse
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41868
    
  63
You could use Telnet to connect to the web services port (e.g., using the Commons Net library). You would get different results depending on whether the server is up or down. But that fundamentally amounts to the same way you describe, which is connecting and watching for Exceptions.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: checking wheather server is down or not