tracker.open();
else
tracker = trackerRef.get();
}
DataSourceFactory dsf = tracker.getService();
if(dsf != null) {
try {
if(jta) {
ds.compareAndSet(null, wrapXADataSource(dsf.createXADataSource(props)));
} else {
ds.compareAndSet(null, dsf.createDataSource(props));
}
} catch (SQLException e) {
String message = NLS.MESSAGES.getMessage("datasourcefactory.sql.exception", driverName, props,
persistenceBundle.getSymbolicName(), persistenceBundle.getVersion());
_logger.error(message, e);