T
Trace
Hi in the past i was using the followng code below to check if a
server was up and if it was to call a jsp...
However the jsp now resides to my server so there is no point really
of chekcing if it is up to call it ..
So how can i check that the specific page
e.g http://server.com:8100my.jsp is up??
try {
InetAddress address =
InetAddress.getByName("servername.com");
System.out.println("Name: " + address.getHostName());
System.out.println("Addr: " + address.getHostAddress());
System.out.println("Reach: " + address.isReachable(3000));
call url ....
}
} catch (UnknownHostException e) {
System.err.println("Unable to lookup the sic app");
mySession.getVariableField(IProjectVariables.TEMP)
.setValue("error");
} catch (IOException e) {
System.err.println("Unable to reach the sic app");
mySession.getVariableField(IProjectVariables.TEMP)
.setValue("error");
}
server was up and if it was to call a jsp...
However the jsp now resides to my server so there is no point really
of chekcing if it is up to call it ..
So how can i check that the specific page
e.g http://server.com:8100my.jsp is up??
try {
InetAddress address =
InetAddress.getByName("servername.com");
System.out.println("Name: " + address.getHostName());
System.out.println("Addr: " + address.getHostAddress());
System.out.println("Reach: " + address.isReachable(3000));
call url ....
}
} catch (UnknownHostException e) {
System.err.println("Unable to lookup the sic app");
mySession.getVariableField(IProjectVariables.TEMP)
.setValue("error");
} catch (IOException e) {
System.err.println("Unable to reach the sic app");
mySession.getVariableField(IProjectVariables.TEMP)
.setValue("error");
}