Forum Stats

  • 3,767,936 Users
  • 2,252,732 Discussions
  • 7,874,386 Comments

Discussions

check for availability of J2EE Server (urgently reqd)

843807
843807 Member Posts: 46,582
edited Oct 12, 2002 11:13AM in Java Desktop Applications
hi there,

is there any way of checking the J2EE server that whether it is alive or not? i want to do this using java client of j2ee server. in simple english can i check that j2ee server is alive or not?

asif,

Comments

  • 843807
    843807 Member Posts: 46,582
    One option available to you is to check if services are available by attempting to connect to the servers JNDI context.

    Issues you will need to deal with are controlling timeouts and the like to prevent your app from 'hanging' for too long whilst trying to connect to a non-existant server.

    Hope this helps.

    Daniel
This discussion has been closed.