The present invention addresses the problem of linking cross-process and
cross-thread subtransactions into a single user transaction. The
mechanism of the present invention employs bytecode inserted probes to
dynamically detect out of process correlating tokens in an inbound
request. The bytecode inserted probes retrieve the correlating token in
the inbound request. Based on the correlating token retrieved, the
bytecode inserted probes are then used to dynamically determine if the
inbound user request should be recorded and linked to a transaction that
began in another thread or process.