[omniORB] Checking dead References

casillas_juan_M/madrid_tecnologia2@sinvest.es casillas_juan_M/madrid_tecnologia2@sinvest.es
Fri, 11 Feb 2000 08:40:33 +0100


Hello !

      Yesterday night I was writting some code to parse the Naming
Service and get =20
      object references. Due the Naming Service is persistent and some
of my =20
      funnny servants crashes badly and unexpectly, their object
references =20
      remains in the naming service. When my client parses the Naming
Service
      and get object references, some of then are dead, other not. I
test dead
      references usign a try / catch (CORBA::COMM_FAILURE) block and
this
      works, but ... There are another way to check "dead" references ?
(maybe using
      the _non_existent() method) or some like this ? I read some about
this in Michi's
      Book (Advanced CORBA Programming ...) but I don't remember where I=

stored
      the book ... :)

      My servant's beheavior is the right one, so they must crash
randomly to ensure that
      the system support unexpected desconnections and dynamic
reconnections.

Kind Regards

Juan Manuel Casillas
Santander Investment
(systems/technology)
mail: jcasilla.madrid@sinvest.es