public static ConnectionManager createConnectionManager ( TransactionSupportEnum tse , ManagedConnectionFactory mcf , CachedConnectionManager ccm , ConnectionManagerConfiguration cmc , TransactionIntegration ti ) { if ( tse == TransactionSupportEnum . NoTransaction ) { return new NoTransactionConnectionManager ( mcf , ccm , cmc ) ; } else if ( tse == TransactionSupportEnum . LocalTransaction ) { return new LocalTransactionConnectionManager ( mcf , ccm , cmc , ti ) ; } else { return new XATransactionConnectionManager ( mcf , ccm , cmc , ti ) ; } }
Create a connection manager