void forgetTransaction ( Xid xid ) { try { TransactionOperationFactory factory = assertStartedAndReturnFactory ( ) ; ForgetTransactionOperation operation = factory . newForgetTransactionOperation ( xid ) ; //async. //we don't need the reply from server. If we can't forget for some reason (timeouts or other exception), // the server reaper will cleanup the completed transactions after a while. (default 1 min) operation . execute ( ) ; } catch ( Exception e ) { if ( isTraceLogEnabled ( ) ) { getLog ( ) . tracef ( e , "Exception in forget transaction xid=%s" , xid ) ; } } }
Tells the server to forget this transaction .