Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem while accesing servlet from server (without connection object)

Status
Not open for further replies.

adusumillinaveen

Programmer
Feb 10, 2003
1
IN
Hi All Techies,

I wish I will find solution for this atleast in this ?

Question:- I have a servlet running on a JRun4.0 - IIS combination on machine XYZ. Now I am trying to access this servlet from other machine.

Scenario :-

1. If Server is up and the servlet is placed in proper location -> IT will produce the desired output on the browser.

2. If the Server is up and the servlet is not in proper place/not present -> My Intention is to display a meaningful message on the browser. (Instead of default message I want to customize this page.)

3.If the Server is down and the servlet is placed in proper location -> My Intention is to display a meaningful message on the browser. (Instead of default message I want to customize this page.)


To achieve this (scenario 2 & 3 -> Error Message) I don't want the solution from Java API, (java.net.* package). I don't want to use Connection object to check the server status (it is running or not / class file is present or ont), because if in a scenario of 100 concurrent users, The traffic load will be high and it will reduce performance.

Try to explore this without connection object .....

Thanks,

Naveen

201328@infy.com
naveen_ka@yahoo.com
 
I think you can use another servlet to check the status of the server and output the status to a simple plain text periodically.
Your original servlet will read the status(Read only).
I think the traffic of reading from a short plain text(several bytes) of 100 users is very low.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top