.getAttachment(ConnectorXmlDescriptor.ATTACHMENT_KEY);
if (connectorXmlDescriptor == null) {
return; // Skip non ra deployments
}
ResourceAdapters raxmls = null;
// getResourceAdaptersAttachment(deploymentUnit);
final ServiceController<?> raService = phaseContext.getServiceRegistry().getService(
ConnectorServices.RESOURCEADAPTERS_SERVICE);
if (raService != null)
raxmls = ((ResourceAdapters) raService.getValue());
if (raxmls == null)
return;
log.tracef("processing Raxml");
Module module = deploymentUnit.getAttachment(Attachments.MODULE);
if (module == null)
throw new DeploymentUnitProcessingException("Failed to get module attachment for " + deploymentUnit);
try {
final ServiceTarget serviceTarget = phaseContext.getServiceTarget();
for (org.jboss.jca.common.api.metadata.resourceadapter.ResourceAdapter raxml : raxmls.getResourceAdapters()) {
if (deploymentUnit.getName().equals(raxml.getArchive())) {
final String deployment;
if (deploymentUnit.getName().lastIndexOf('.') == -1) {
deployment = deploymentUnit.getName();