code: 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);
        }
     }
docs: Create a connection manager
  @param tse The transaction support level
  @param mcf The managed connection factory
  @param ccm The cached connection manager
  @param cmc The connection manager configuration
  @param ti The transaction integration
  @return The connection manager