[omniORB] How to handle server shutdown

Alvaro Vega Garcia avega at tid.es
Mon Jun 1 13:56:56 BST 2009


Hi,

On Fri, 2009-05-29 at 09:38 +0200, Toni Cebrián wrote:
> Hi,
> 
>    We have a problem trying to reach a server that has been shut down
> and restarted. The setup is as follow, we have a Client that access
> the NameService asking for the  server reference. It then stores the
> narrowed object for later access. Then I shutdown the server, I
> restart again, the server does a rebind in the NameService, and waits
> por connections. The server is started with de -ORBendPoint
> giop:tcp:my_machine:my_port option in the command line. The server is
> perfectly functional for other clients, but the former client isn't
> able to communicate with the server. It doesn't complain about
> anything, nor CORBA::Transient nor CORBA::COMM_ERRORs  when sending
> requests but the server doesn't manages the requests. I supose that
> there is something I'm doing wrong but I can't see what.
>    The question is, which is the best way you make your clients fault
> tolerant to CORBA server failures? It seems that restarting the server
> listening in the same port doesn't work for me.
> 
How did you obtain the server reference? If you are using "oneway" calls
and you obtained the reference using "unchecked_narrow" maybe the client
is not notified about something was wrong (specially when client was
able to connect with server before was restarted). Make sure you are
using checked references or use "_is_a" to check the reference.

Regards,
Álvaro

> Best regards.





More information about the omniORB-list mailing list