[omniORB] Does _non_existent() work?

Jonathan Buchanan buchanan@olsen.ch
Thu, 30 Sep 1999 16:48:30 +0200


Hi Jim,

I wrote a similar probe in Java and tried to use _non_existent.  I found
it worked for objects running under the Java ORB but not for omniORB2
objects nor (extinct) Orbix objects.  So I use a call to _is_a instead
which does seems to work:


    public boolean objectIsAlive( String key )
    {
        boolean result = false;
        org.omg.CORBA.Object obj = corba_.resolveName( key );
        if ( obj != null ) {
            try {
                obj._is_a( "Dummy" );
                result = true;
            }
            catch( Exception e ) {}
        }
        return result;
    }

However, I would be interested to find out how to use _is_a more
usefully!

Regards,
Jon