Click to See Complete Forum and Search --> : how to write two server program for multiple clients in java


Murugar
April 25th, 2010, 11:35 PM
hi all..........

I wrote the java program as one server having multiple clients....

Now, I need to write 2 server program handling multiple clients.......

If one server fails,... another server should handle the clients......

Can anybody gave me idea for doing this,... If you have code related to this plz post me that too......

Thanks...

ajhampson
April 27th, 2010, 10:06 AM
How are you running your servers? Are they running under an app server or something like that? If so, most of these will provide that functionality for you. You run multiple instances of your application and the app server takes care of load balancing.

There is also code for this in the Apache web server proxy.

I don't know of any other examples, off hand. You might try Googling java load balancing.