public int branchCouplingSupported ( int couplingType ) { // Return -1 as we have no support for resref branch coupling if ( couplingType == ResourceRefInfo . BRANCH_COUPLING_LOOSE || couplingType == ResourceRefInfo . BRANCH_COUPLING_TIGHT ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "Specified branch coupling type not supported" ) ; } return - 1 ; } // If resref branch coupling unset then return default xa_start flags return javax . transaction . xa . XAResource . TMNOFLAGS ; }
This method checks if the connection supports loose or tight branch coupling