Causality ID
Each ORPC carries with it a UUID known as the causality ID that connects together the chain of ORPC calls that are causally related. If an outgoing ORPC is made while servicing an incoming ORPC, the outgoing call is to have the same causality ID as the incoming call. If an outgoing ORPC is made while not servicing an incoming ORPC, then a new causality ID is allocated for it.
Causality IDs may in theory be reused as soon as it is certain that no transitively outstanding call is still in progress which uses that call. In practice, however, in the face of transitive calls and the possibility of network failures in the middle of such call chains, it is difficult to know for certain when this occurs. Thus, pragmatically, causality IDs are not reusable.
The causality ID can be used by servers to understand when blocking or deferring an incoming call (supported in some COM server programming models) is very highly probable9. to cause a deadlock, and thus should be avoided.
The causality ID for maybe, idempotent, and broadcast calls must be set to null.10. If a server makes a ORPC call while processing such a call, a new causality ID must be generated as if it were a top level call.