Implicit Activation

The IMPLICIT_ACTIVATION policy value enables you to activate a CORBA object and create a corresponding object reference from the servant object in a single step using the servant’s _this() function.

To enable implicit activation, the POA policies shown in Table 7.10 must be used together.

Table 7.10. Policy Values Required for Implicit Activation
POA Policy TypePolicy Value
ImplicitActivationPolicyIMPLICIT_ACTIVATION
IdAssignmentPolicySYSTEM_ID
ServantRetentionPolicyRETAIN

If you attempt to set the IMPLICIT_ACTIVATION policy value without using the SYSTEM_ID and RETAIN policy values as well, the POA::create_POA() operation raises the InvalidPolicy user exception.

Consider, for example, the RecycleBroker::BranchOffice interface, ...

Get Pure CORBA now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.