org.omg.PortableServer
Interface CurrentOperations

All Superinterfaces:
CurrentOperations
All Known Subinterfaces:
Current

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 Servant._object_id() and Servant._poa() that use the CurrentOperations indirectly. As long as the ORB reference is still available, the current information is available via 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.
 POA get_POA()
          Returns POA to that the object currently being served is connected.
 

Method Detail

get_object_id

byte[] get_object_id()
                     throws NoContext
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.
Throws:
NoContext

get_POA

POA get_POA()
            throws NoContext
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.
Throws:
NoContext