org.omg.PortableServer

Interface CurrentOperations

public interface CurrentOperations extends CurrentOperations

Provides the Id of the object currently being served and POA to that this object is connected. Both Id and POA can be much simpler obtained from the servant by {@link Servant#_object_id() } and {@link Servant#_poa()} that use the CurrentOperations indirectly. As long as the ORB reference is still available, the current information is available via {@link Current} that is returned by ORB.resolve_initial_references("POACurrent"). To support this call, the ORB maintains the thread to invocation data map for all calls that are currently being processed.
Method Summary
byte[]get_object_id()
Returns the Id of the object currently being served.
POAget_POA()
Returns POA to that the object currently being served is connected.

Method Detail

get_object_id

public byte[] get_object_id()
Returns the Id of the object currently being served. The returned value is also correct if the calling code is running is several paralled threads.

Returns: the Id of the object that is currently being served by this thread.

get_POA

public POA get_POA()
Returns POA to that the object currently being served is connected. The returned value is also correct if the calling code is running is several paralled threads.

Returns: the Id of the object that is currently being served by this thread.