private boolean raSupportsCCILocalTran ( ManagedConnectionFactory mcf ) throws ResourceException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; ConnectionFactory cf ; ResourceAdapterMetaData raMetaData ; boolean cciLocalTranSupported = false ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "raSupportsCCILocalTran" ) ; if ( gConfigProps . transactionSupport == TransactionSupportLevel . XATransaction || gConfigProps . transactionSupport == TransactionSupportLevel . LocalTransaction ) { cf = ( ConnectionFactory ) mcf . createConnectionFactory ( this ) ; raMetaData = cf . getMetaData ( ) ; if ( raMetaData != null ) cciLocalTranSupported = raMetaData . supportsLocalTransactionDemarcation ( ) ; } if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( this , tc , "raSupportsCCILocalTran " + cciLocalTranSupported ) ; return cciLocalTranSupported ; }
This method returns a boolean value indicating whether or not CCI Local Transaction support is provided by the resource adapter .