Hi, I m having a dillema now. I have a java program that tries to send message accross an http server. Now when the server is not available, it throws an obvious IOException. Now my requirement is that I want to resend the same message to a backup http server if the first server fails.
I have found the solution but I think my code smells.
the client code :
Can anybody tell me what is wrong with this code??