protected void updateTranLogServiceData ( ) throws Exception { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "updateTranLogServiceData" ) ; try { // // Check we have a recoverableUnit and three sections to add the data. // On recovery we check that all service data sections were recovered. // if ( _tranlogServiceData == null ) { _tranlogServiceData = _tranLog . createRecoverableUnit ( ) ; _tranlogServerSection = _tranlogServiceData . createSection ( TransactionImpl . SERVER_DATA_SECTION , true ) ; _tranlogApplIdSection = _tranlogServiceData . createSection ( TransactionImpl . APPLID_DATA_SECTION , true ) ; _tranlogEpochSection = _tranlogServiceData . createSection ( TransactionImpl . EPOCH_DATA_SECTION , true ) ; // Log this server name _tranlogServerSection . addData ( Utils . byteArray ( _failureScopeController . serverName ( ) ) ) ; // Log our ApplId _tranlogApplIdSection . addData ( _ourApplId ) ; } // Always update this server's current epoch _tranlogEpochSection . addData ( Util . intToBytes ( _ourEpoch ) ) ; _tranlogServiceData . forceSections ( ) ; } catch ( Exception e ) { FFDCFilter . processException ( e , "com.ibm.tx.jta.impl.RecoveryManager.updateTranLogSeviceData" , "1130" , this ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "updateTranLogServiceData" , e ) ; throw e ; } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "updateTranLogServiceData" ) ; }
Update service data in the tran log files