14.16.1.2 Description
Objects with the LifespanPolicy
interface are
obtained using the POA::create_lifespan_policy
operation and are passed to the POA::create_POA
operation to specify the life span of the objects implemented in
the created POA. The following values can be supplied:
-
TRANSIENT
—the objects implemented in the POA cannot outlive the process in which they are first created. -
PERSISTENT
—the objects implemented in the POA can outlive the process in which they are first created.Persistent objects have a POA associated with them (the POA that created them). When the ORB receives a request on a persistent object, it searches for the matching POA, based on the names of the POA and all of its ancestors.
POA names must be unique within their enclosing scope (the parent POA). A portable program can assume that POA names used in other processes will not conflict with its own POA names.
If no LifespanPolicy
object is passed to
create_POA
, the lifespan policy defaults to
TRANSIENT
.
Note: This function is supported only for a joint client/server.
Parent topic: PortableServer::LifespanPolicy