Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to verify if server is down  RSS feed

 
alexandre nofre
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all,

How can I verify if server is down from a desktop client? I tried doing a try-catch lookup to a Stateless SB, but it crashes and doesnt catch the exception:

try{
// do lookup
} catch (Throwable t){
// report error
}

if glassfish is down, the catch doesn't work, Is there a other way to do that?

Thanks in advance
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!