if (isXADS) {
if (!dataService.isEnableXA()) {
throw new DataServiceFault(
"Internal XADataSource: XA transaction support must be enabled to use XADataSources");
}
XADataSourceInfo xaInfo = ((RDBMSConfig) config).getXADataSourceInfo();
connectionFactory = new DataSourceXAConnectionFactory(
dataService.getDSSTxManager().getTransactionManager(), xaInfo.getXADataSource());
} else if (externalDS != null) {
if (externalDS instanceof XADataSource) {
if (!dataService.isEnableXA()) {
throw new DataServiceFault(
"External XADataSource: XA transaction support must be enabled to use XADataSources");