3.7.2.4.3 Arguments
-
stroid
- Specifies the object ID in string format. The object ID uniquely identifies this instance of the class.
Note:
The restriction on the length of the object ID has been removed in this release. -
reason
- Indicates the event that caused this method to be invoked. The
reason
code can be one of the following:-
DR_METHOD_END
- Indicates that the object is being deactivated after the completion of a method. It is used if the object’s deactivation policy is:
-
- method
-
- transaction
(only if there is no transaction in effect) -
- process
(ifTP::deactivateEnable()
called)
-
-
DR_SERVER_SHUTDOWN
- Indicates that the object is being deactivated because the server is being shut down in an orderly fashion. It is used if the object’s deactivation policy is:
-
- transaction
(only if transaction is active) -
- process
Note:
When a server is shut down in an orderly fashion, all transactions that the server is involved in are marked for rollback.
-
-
DR_TRANS_ABORTED
- This
reason
code is used only for objects that have thetransaction
activation policy. It can occur when the transaction is started by either the client or automatically by the system. When thedeactivate_object()
method is invoked with this reason code, the transaction is marked for rollback only. -
DR_TRANS_COMMITTING
- This
reason
code is used only for objects that have thetransaction
activation policy. It can occur when the transaction is started by either the client or the TP Framework. It indicates that aCurrent.commit()
operation was invoked for the transaction in which the object is involved. Thedeactivate_object()
method is invoked just before the transaction manager’s two-phase commit algorithm begins; that is, beforeprepare
is sent to the resource managers. -
DR_EXPLICIT_DEACTIVATE
- Indicates that the object is being deactivated because the
application executed a
TP::deactivateEnable(-,-,-)
on this object. This can happen only for objects that have theprocess
activation policy.
-
Parent topic: Tobj_ServantBase::deactivate_object()