public static final boolean isRecoverable ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "isRecoverable" ) ; // This JTS is recoverable if there is a server name. // boolean result = (serverName != null); // JTA2 - we are recoverable if we have a working log... // We can have a serverName but no working log either because // a) the log config or store is invalid // b) the log config indicates no logging. // boolean result = false ; if ( _failureScopeController != null ) { result = ( _failureScopeController . getTransactionLog ( ) != null ) ; } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "isRecoverable" , Boolean . valueOf ( result ) ) ; return result ; }
Determines whether the JTS instance is recoverable .