Hi,
I failed to mention that we are looking at apache/jserv
load-balancing/fail-over capabilities for HTTP/FTP and our client will post
data from a java program. No browser is involved. Cookies are useless in
this case ?? Data will flow from various clients, probably posted from java
program client agents.
bye,
Mohan
-----Original Message-----
From: Elancheran T.S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 3:34 PM
To: Mohan Radhakrishnan
Subject: Re: HTTP fail-over
I don't know how exactly we can acheive this. I have done like this.
Write a program which establish a connection with your server. If it throws
any
exception then it means that it's down.
Please see the code listed here,
try {
URL url = new URL(server);
System.out.print("Server : " + url.getHost());
URLConnection urlCon = url.openConnection();
urlCon.connect();
System.out.println(" Alive");
}
catch(Exception e) {
System.out.println(" *** Down ***");
}
Hope this help you.
Mohan Radhakrishnan wrote:
> Hi,
> We have a client that has 3 modes of connection to our central
> server. HTTP, FTP and e-mail. We are trying to ensure that if HTTP, the
> primary link fails we should use FTP or e-mail to transfer the data. Is
> there a straightforward way to find out the HTTP/FTP/mail server is down
and
> fail-over?
> bye,
> Mohan
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html