[Advanced-java] client server problem

G S Sahai guneet at in.fiorano.com
Wed Jul 16 13:08:33 2003


This is a multi-part message in MIME format.

---------------------- multipart/alternative attachment
Hi All,

I'm facing a problem. Here are some details.......

-> I Have a server program that listens for client connections at a particu=
lar port. The server is pure 100% java code.=20

-> I'm trying to add High Availability support for this server.=20

-> For this purpose, I'll start off a backup server that would become activ=
e when the primary server fails.

-> In case of a network failure, I want to add the following logic

    *   If the primary server goes out of network, no point in continuing s=
hutdown the primary server and start the backup

    *   if the secondary server goes out of network, no problems continue

Now I want to figure out a way by which I can distinguish the above two sit=
uations. I was relying on exception's error code but it appears that they a=
re not uniform across platforms.=20

Thanks in advance
- gs

Fiorano MailServer
All incoming and outgoing mails are scanned for Virus and Spam
http://www.fiorano.com


---------------------- multipart/alternative attachment
An HTML attachment was scrubbed...
URL: /lists/advanced-java/attachments/20030716/3a5f4a0f/attachment.htm

---------------------- multipart/alternative attachment--