@Override public void undeploy(final DeploymentUnit deploymentUnit) { final List<DataSources> dataSourcesList = deploymentUnit.getAttachmentList(DsXmlDeploymentParsingProcessor.DATA_SOURCES_ATTACHMENT_KEY); for (final DataSources dataSources : dataSourcesList) { if (dataSources.getDataSource() != null) { for (int i = 0; i < dataSources.getDataSource().size(); i++) { DataSource ds = dataSources.getDataSource().get(i); undeployDataSource(ds, deploymentUnit); } } if (dataSources.getXaDataSource() != null) { for (int i = 0; i < dataSources.getXaDataSource().size(); i++) { XaDataSource xads = dataSources.getXaDataSource().get(i); undeployXaDataSource(xads, deploymentUnit); } } } deploymentUnit.removeAttachment(DsXmlDeploymentParsingProcessor.DATA_SOURCES_ATTACHMENT_KEY); }
if (dataSources.getXaDataSource() != null && dataSources.getXaDataSource().size() > 0) { for (int i = 0; i < dataSources.getXaDataSource().size(); i++) { XaDataSource xads = (XaDataSource)dataSources.getXaDataSource().get(i); if (xads.isEnabled() && xads.getDriver() != null) { try {
public void undeploy(final DeploymentUnit context) { final List<DataSources> dataSourcesList = context.getAttachmentList(DsXmlDeploymentParsingProcessor.DATA_SOURCES_ATTACHMENT_KEY); for (final DataSources dataSources : dataSourcesList) { if (dataSources.getDataSource() != null) { for (int i = 0; i < dataSources.getDataSource().size(); i++) { DataSource ds = (DataSource)dataSources.getDataSource().get(i); undeployDataSource(ds, context); } } if (dataSources.getXaDataSource() != null) { for (int i = 0; i < dataSources.getXaDataSource().size(); i++) { XaDataSource xads = (XaDataSource)dataSources.getXaDataSource().get(i); undeployXaDataSource(xads, context); } } } }
@Override public void undeploy(final DeploymentUnit deploymentUnit) { final List<DataSources> dataSourcesList = deploymentUnit.getAttachmentList(DsXmlDeploymentParsingProcessor.DATA_SOURCES_ATTACHMENT_KEY); for (final DataSources dataSources : dataSourcesList) { if (dataSources.getDataSource() != null) { for (int i = 0; i < dataSources.getDataSource().size(); i++) { DataSource ds = dataSources.getDataSource().get(i); undeployDataSource(ds, deploymentUnit); } } if (dataSources.getXaDataSource() != null) { for (int i = 0; i < dataSources.getXaDataSource().size(); i++) { XaDataSource xads = dataSources.getXaDataSource().get(i); undeployXaDataSource(xads, deploymentUnit); } } } deploymentUnit.removeAttachment(DsXmlDeploymentParsingProcessor.DATA_SOURCES_ATTACHMENT_KEY); }
if (dataSources.getXaDataSource() != null && dataSources.getXaDataSource().size() > 0) { for (int i = 0; i < dataSources.getXaDataSource().size(); i++) { XaDataSource xads = (XaDataSource)dataSources.getXaDataSource().get(i); if (xads.isEnabled() && xads.getDriver() != null) { try {
for (XaDataSource xads : dataSources.getXaDataSource())
if (dataSources.getXaDataSource() != null && dataSources.getXaDataSource().size() > 0) { for (int i = 0; i < dataSources.getXaDataSource().size(); i++) { XaDataSource xads = (XaDataSource)dataSources.getXaDataSource().get(i); if (xads.isEnabled() && xads.getDriver() != null) { try {