Obtain a Transaction Object
MonitoredRequestStreamHandler
class creates a transaction for you
automatically. However, you need to obtain the transaction
object for use
with exit calls.
The code snippet below demonstrates how to obtain the transaction
object:
//Obtain your transaction for use with exit calls.
Transaction transaction = getTransaction();