Shutdown the Transaction Manager
If you wish to shut the system down completely then it may also be necessary to terminate the background transaction reaper (see the Programmers Guide for information about what the reaper does.) In order to do this you may want to first prevent the creation of new transactions (if you are not creating transactions with timeouts then this step is not necessary) using method TxControl.disable. Then you should call method TransactionReaper.terminate. This method takes a Boolean parameter: if true then the method will wait for the normal timeout periods associated with any transactions to expire before terminating the transactions; if false then transactions will be forced to terminate (rollback or have their outcome set such that they can only ever rollback) immediately. Note if you intent to restart the recovery manager later after having terminated it then you MUST use the TransactionReapear.terminate method with asynchronous behavior set to false.