The
isLocal method has the same semantics as the
ObjectImpl._is_local
method, except that it can throw a
RemoteException.
The
isLocal method has the same semantics as the
ObjectImpl._is_local method, except that it can throw a
RemoteException.
The
_is_local() method is provided so that stubs may determine if a
particular object is implemented by a local servant and hence local
invocation APIs may be used.
Returns:
The
_is_local() method returns true if
the servant incarnating the object is located in the same process as
the stub and they both share the same ORB instance. The
_is_local()
method returns false otherwise. The default behavior of
_is_local() is
to return false.
Parameters:
-
stub - the stub to test.
Throws:
-
RemoteException - The Java to IDL specification does not
specify the conditions that cause a
RemoteException to be thrown.