Author: alessio.soldano(a)jboss.com
Date: 2011-12-14 20:22:51 -0500 (Wed, 14 Dec 2011)
New Revision: 15385
Modified:
container/jboss70/branches/jbossws-jboss702/src/main/java/org/jboss/as/webservices/deployers/deployment/AbstractDeploymentModelBuilder.java
container/jboss70/branches/jbossws-jboss702/src/main/java/org/jboss/as/webservices/deployers/deployment/DeploymentModelBuilderJAXRPC_JSE.java
Log:
[JBWS-3398] Propagate WebservicesMetaData to jbws jaxws deployments too on AS 702
Modified:
container/jboss70/branches/jbossws-jboss702/src/main/java/org/jboss/as/webservices/deployers/deployment/AbstractDeploymentModelBuilder.java
===================================================================
---
container/jboss70/branches/jbossws-jboss702/src/main/java/org/jboss/as/webservices/deployers/deployment/AbstractDeploymentModelBuilder.java 2011-12-15
00:13:46 UTC (rev 15384)
+++
container/jboss70/branches/jbossws-jboss702/src/main/java/org/jboss/as/webservices/deployers/deployment/AbstractDeploymentModelBuilder.java 2011-12-15
01:22:51 UTC (rev 15385)
@@ -36,6 +36,7 @@
import org.jboss.as.server.deployment.module.ResourceRoot;
import org.jboss.as.webservices.util.ASHelper;
import org.jboss.as.webservices.util.VirtualFileAdaptor;
+import org.jboss.as.webservices.util.WSAttachmentKeys;
import org.jboss.logging.Logger;
import org.jboss.modules.Module;
import org.jboss.vfs.VirtualFile;
@@ -48,6 +49,7 @@
import org.jboss.wsf.spi.deployment.Endpoint;
import org.jboss.wsf.spi.deployment.EndpointType;
import org.jboss.wsf.spi.deployment.UnifiedVirtualFile;
+import org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData;
/**
* Base class for all deployment model builders.
@@ -105,6 +107,10 @@
dep.addAttachment(DeploymentUnit.class, unit);
unit.putAttachment(DEPLOYMENT_KEY, dep);
}
+ final WebservicesMetaData wsMetaData = ASHelper.getOptionalAttachment(unit,
WSAttachmentKeys.WEBSERVICES_METADATA_KEY);
+ if (wsMetaData != null) {
+ dep.addAttachment(WebservicesMetaData.class, wsMetaData);
+ }
this.build(dep, unit);
}
Modified:
container/jboss70/branches/jbossws-jboss702/src/main/java/org/jboss/as/webservices/deployers/deployment/DeploymentModelBuilderJAXRPC_JSE.java
===================================================================
---
container/jboss70/branches/jbossws-jboss702/src/main/java/org/jboss/as/webservices/deployers/deployment/DeploymentModelBuilderJAXRPC_JSE.java 2011-12-15
00:13:46 UTC (rev 15384)
+++
container/jboss70/branches/jbossws-jboss702/src/main/java/org/jboss/as/webservices/deployers/deployment/DeploymentModelBuilderJAXRPC_JSE.java 2011-12-15
01:22:51 UTC (rev 15385)
@@ -59,10 +59,7 @@
if (webMetaData != null) {
dep.addAttachment(JBossWebMetaData.class, webMetaData);
}
- final WebservicesMetaData wsMetaData = ASHelper.getOptionalAttachment(unit,
WSAttachmentKeys.WEBSERVICES_METADATA_KEY);
- if (wsMetaData != null) {
- dep.addAttachment(WebservicesMetaData.class, wsMetaData);
- }
+ final WebservicesMetaData wsMetaData =
dep.getAttachment(WebservicesMetaData.class);
this.log.debug("Creating JAXRPC JSE endpoints meta data model");
for (WebserviceDescriptionMetaData wsd : wsMetaData.getWebserviceDescriptions())
{