private ModifiableDataSource buildDataSource(DataSource ds) throws org.jboss.jca.common.api.validator.ValidateException { assert ds.getSecurity() == null || ds.getSecurity() instanceof DsSecurity; return new ModifiableDataSource(ds.getConnectionUrl(), ds.getDriverClass(), ds.getDataSourceClass(), ds.getDriver(), ds.getTransactionIsolation(), ds.getConnectionProperties(), ds.getTimeOut(), (DsSecurity) ds.getSecurity(), ds.getStatement(), ds.getValidation(), ds.getUrlDelimiter(), ds.getUrlSelectorStrategyClassName(), ds.getNewConnectionSql(), ds.isUseJavaContext(), ds.getPoolName(), ds.isEnabled(), ds.getJndiName(), ds.isSpy(), ds.isUseCcm(), ds.isJTA(), ds.isConnectable(), ds.isTracking(), ds.getMcp(), ds.isEnlistmentTrace(), ds.getPool()); }
String driverName = dataSourceConfig.getDriver(); InstalledDriver installedDriver = driverRegistry.getValue().getInstalledDriver(driverName); if (installedDriver != null) {
setStringIfNotNull(context, dataSource.getJndiName()); } else if (attributeName.equals(Constants.DATASOURCE_DRIVER.getName())) { setStringIfNotNull(context, dataSource.getDriver()); } else if (attributeName.equals(Constants.NEW_CONNECTION_SQL.getName())) { setStringIfNotNull(context, dataSource.getNewConnectionSql());
if (ds.getDriver() == null) { throw ConnectorLogger.ROOT_LOGGER.FailedDeployDriverNotSpecified(ds.getJndiName());
private ModifiableDataSource buildDataSource(DataSource ds) throws org.jboss.jca.common.api.validator.ValidateException { assert ds.getSecurity() == null || ds.getSecurity() instanceof DsSecurity; return new ModifiableDataSource(ds.getConnectionUrl(), ds.getDriverClass(), ds.getDataSourceClass(), ds.getDriver(), ds.getTransactionIsolation(), ds.getConnectionProperties(), ds.getTimeOut(), (DsSecurity) ds.getSecurity(), ds.getStatement(), ds.getValidation(), ds.getUrlDelimiter(), ds.getUrlSelectorStrategyClassName(), ds.getNewConnectionSql(), ds.isUseJavaContext(), ds.getPoolName(), ds.isEnabled(), ds.getJndiName(), ds.isSpy(), ds.isUseCcm(), ds.isJTA(), ds.isConnectable(), ds.isTracking(), ds.getMcp(), ds.isEnlistmentTrace(), ds.getPool()); }
for (int i = 0; i < dataSources.getDataSource().size(); i++) { DataSource ds = (DataSource)dataSources.getDataSource().get(i); if (ds.isEnabled() && ds.getDriver() != null) { try { final String jndiName = Util.cleanJndiName(ds.getJndiName(), ds.isUseJavaContext()); startDataSource(lds, jndiName, ds.getDriver(), serviceTarget, getRegistration(false, deploymentUnit), getResource(dsName, false, deploymentUnit), dsName, useLegacySecurity, ds.isJTA()); } catch (Exception e) {
setStringIfNotNull(context, dataSource.getJndiName()); } else if (attributeName.equals(Constants.DATASOURCE_DRIVER.getName())) { setStringIfNotNull(context, dataSource.getDriver()); } else if (attributeName.equals(Constants.NEW_CONNECTION_SQL.getName())) { setStringIfNotNull(context, dataSource.getNewConnectionSql());
if (ds.getDriver() == null) { throw ConnectorLogger.ROOT_LOGGER.FailedDeployDriverNotSpecified(ds.getJndiName());
setStringIfNotNull(context, dataSource.getJndiName()); } else if (attributeName.equals(Constants.DATASOURCE_DRIVER.getName())) { setStringIfNotNull(context, dataSource.getDriver()); } else if (attributeName.equals(Constants.NEW_CONNECTION_SQL.getName())) { setStringIfNotNull(context, dataSource.getNewConnectionSql());
String driverName = dataSourceConfig.getDriver(); InstalledDriver installedDriver = driverRegistry.getValue().getInstalledDriver(driverName); if (installedDriver != null) {
String driverName = dataSourceConfig.getDriver(); InstalledDriver installedDriver = driverRegistry.getValue().getInstalledDriver(driverName); if (installedDriver != null) {
for (int i = 0; i < dataSources.getDataSource().size(); i++) { DataSource ds = (DataSource)dataSources.getDataSource().get(i); if (ds.isEnabled() && ds.getDriver() != null) { try { final String jndiName = Util.cleanJndiName(ds.getJndiName(), ds.isUseJavaContext()); startDataSource(lds, jndiName, ds.getDriver(), serviceTarget, getRegistration(false, deploymentUnit), getResource(dsName, false, deploymentUnit), dsName, useLegacySecurity, ds.isJTA()); } catch (Exception e) {