I have a scanario wherein there is a Corba Client Server application. The Corba server application may go down and come up again. In this case, in the client application the server object which it had created and used previously becomes a stale object and hence cannot communicate with the server using the same object. In this case, i wud like to reconfigure this object (with all the params like OrbInitialPort, OrbInitial host and service name). How best can I do this. I tried to do this by doing simple reconfigure(). In this method I do the same things which I used to do initally. Bu the problem is if I bring down the server and restart it for more number of times say 3-4, the client object keeps on throwing Corba COMM_FAILURE exception. It works fine only when I restart the server application once. Note that I am not restarting the orbd, but only the corba service.
How to resolve this issue in case I restart the server application multiple times.