connectionFactory = new LocalXAConnectionFactory(
dataService.getDSSTxManager().getTransactionManager(), connectionFactory);
}
}
this.pool = createGenericConnectionFactory(config);
AbandonedConfig abandonedConfig = new AbandonedConfig();
if (!DBUtils.isEmptyString(logAbandoned)) {
abandonedConfig.setLogAbandoned(Boolean.parseBoolean(logAbandoned));
}
if (!DBUtils.isEmptyString(removeAbandonedTimeout)) {
abandonedConfig.setRemoveAbandonedTimeout(Integer.parseInt(removeAbandonedTimeout));
}
if (!DBUtils.isEmptyString(removeAbandoned)) {
abandonedConfig.setRemoveAbandoned(Boolean.parseBoolean(removeAbandoned));
}
String validationQuery = config.getProperty(RDBMS.VALIDATION_QUERY);
boolean hasValQuery = validationQuery != null && validationQuery.trim().length() > 0;
PoolableConnectionFactory factory = new PoolableConnectionFactory(connectionFactory,