Author: alessio.soldano(a)jboss.com
Date: 2008-06-27 04:05:54 -0400 (Fri, 27 Jun 2008)
New Revision: 7748
Modified:
container/jboss50/trunk/src/main/java/org/jboss/wsf/container/jboss50/deployer/WebServiceDeployerEJB.java
Log:
[JBWS-2240] Workaround to get port-component data
Modified:
container/jboss50/trunk/src/main/java/org/jboss/wsf/container/jboss50/deployer/WebServiceDeployerEJB.java
===================================================================
---
container/jboss50/trunk/src/main/java/org/jboss/wsf/container/jboss50/deployer/WebServiceDeployerEJB.java 2008-06-27
06:34:48 UTC (rev 7747)
+++
container/jboss50/trunk/src/main/java/org/jboss/wsf/container/jboss50/deployer/WebServiceDeployerEJB.java 2008-06-27
08:05:54 UTC (rev 7748)
@@ -27,9 +27,13 @@
import org.jboss.ejb.deployers.MergedJBossMetaDataDeployer;
import org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData;
import org.jboss.metadata.ejb.jboss.JBossMetaData;
+import org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData;
+import org.jboss.metadata.javaee.spec.PortComponent;
import org.jboss.metadata.web.jboss.JBossWebMetaData;
import org.jboss.wsf.spi.deployment.integration.WebServiceDeclaration;
import org.jboss.wsf.spi.deployment.integration.WebServiceDeployment;
+import org.jboss.wsf.spi.metadata.j2ee.PortComponentMD;
+import org.jboss.wsf.spi.metadata.j2ee.PortComponentSpec;
import org.jboss.logging.Logger;
import java.lang.annotation.Annotation;
@@ -136,6 +140,23 @@
{
result = (T)bean.getAnnotation(annotation);
}
+
+ //[JBWS-2240] Workaround to have the port-component data available;
+ //TODO: info coming from the descriptor still need to be handled properly
+ if (PortComponentSpec.class.equals(annotation) && ejbMetaData instanceof
JBossSessionBeanMetaData)
+ {
+ PortComponent pc = ((JBossSessionBeanMetaData)ejbMetaData).getPortComponent();
+ if (pc != null)
+ {
+ PortComponentMD pcMetaData = new PortComponentMD();
+ pcMetaData.setAuthMethod(pc.getAuthMethod());
+ pcMetaData.setPortComponentName(pc.getPortComponentName());
+ pcMetaData.setPortComponentURI(pc.getPortComponentURI());
+ pcMetaData.setSecureWSDLAccess(pc.getSecureWSDLAccess());
+ pcMetaData.setTransportGuarantee(pc.getTransportGuarantee());
+ result = (T)pcMetaData;
+ }
+ }
return result;
}
Show replies by date