suspend
method to temporarily suspend the current transaction that is associated with the calling thread. The thread then operates outside of the scope of the transaction. If the thread is not associated with any transaction, a null object reference is returned. Otherwise, a valid Transaction object is returned. Pass the Transaction object to the resume
method to reinstate the transaction context.
resume
method associates the specified transaction context with the calling thread. If the transaction specified is not a valid transaction, , the thread is associated with no transaction. if resume
is invoked when the calling thread is already associated with another transaction, the IllegalStateException
exception is thrown.
suspend
method Transaction tobj = TransactionManager.suspend(); .. TransactionManager.resume(tobj);