This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

checking wheather server is down or not

 
ajse ruku
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic