CORBA Programming Reference
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Indicates that the object supports concurrent, reentrant invocations. This method supports the development of a multithreaded server application.
CORBA::Boolean
_is
_reentrant()
The BEA Tuxedo server infrastructure calls this method to determine whether the servant implementation supports a reentrant invocation. To support reentrancy, a servant must include the necessary code to protect the integrity of its state while multiple threads interact with the object.
The Tobj_ServantBase
class provides a default implementation of the _is_reentrant
method that returns FALSE
.
CORBA::Boolean Simple_i::_is_reentrant()
{ TP::userlog("_is_reentrant called in thread %ld",
(unsigned long)SIMPTHR_GETCURRENTTHREADID);
return CORBA_TRUE;
}
![]() ![]() |
![]() |
![]() |