Search in sources :

Example 6 with JAXWSDeployment

use of org.jboss.as.webservices.metadata.model.JAXWSDeployment in project wildfly by wildfly.

the class MetaDataBuilderJAXWS_EJB method buildEnterpriseBeansMetaData.

@Override
protected void buildEnterpriseBeansMetaData(final Deployment dep, final EJBArchiveMetaData.Builder ejbArchiveMDBuilder) {
    if (!WSHelper.isJaxwsJseDeployment(dep)) {
        // [AS7-1605] support
        final JBossWebMetaData jbossWebMD = WSHelper.getOptionalAttachment(dep, JBossWebMetaData.class);
        final String contextRoot = getContextRoot(dep, jbossWebMD);
        if (contextRoot != null) {
            final JSEArchiveMetaData.Builder jseArchiveMDBuilder = new JSEArchiveMetaData.Builder();
            jseArchiveMDBuilder.setContextRoot(contextRoot);
            dep.addAttachment(JSEArchiveMetaData.class, jseArchiveMDBuilder.build());
        }
    }
    final JAXWSDeployment jaxwsDeployment = WSHelper.getRequiredAttachment(dep, JAXWSDeployment.class);
    final List<EJBMetaData> wsEjbsMD = new LinkedList<EJBMetaData>();
    final JBossWebservicesMetaData jbossWebservicesMD = WSHelper.getOptionalAttachment(dep, JBossWebservicesMetaData.class);
    for (final EJBEndpoint jbossEjbMD : jaxwsDeployment.getEjbEndpoints()) {
        buildEnterpriseBeanMetaData(wsEjbsMD, jbossEjbMD, jbossWebservicesMD);
    }
    ejbArchiveMDBuilder.setEnterpriseBeans(wsEjbsMD);
}
Also used : EJBMetaData(org.jboss.wsf.spi.metadata.j2ee.EJBMetaData) JBossWebMetaData(org.jboss.metadata.web.jboss.JBossWebMetaData) JSEArchiveMetaData(org.jboss.wsf.spi.metadata.j2ee.JSEArchiveMetaData) JBossWebservicesMetaData(org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData) EJBEndpoint(org.jboss.as.webservices.metadata.model.EJBEndpoint) JAXWSDeployment(org.jboss.as.webservices.metadata.model.JAXWSDeployment) LinkedList(java.util.LinkedList)

Example 7 with JAXWSDeployment

use of org.jboss.as.webservices.metadata.model.JAXWSDeployment in project wildfly by wildfly.

the class ASHelper method getJaxwsDeployment.

public static JAXWSDeployment getJaxwsDeployment(final DeploymentUnit unit) {
    JAXWSDeployment wsDeployment = unit.getAttachment(JAXWS_ENDPOINTS_KEY);
    if (wsDeployment == null) {
        wsDeployment = new JAXWSDeployment();
        unit.putAttachment(JAXWS_ENDPOINTS_KEY, wsDeployment);
    }
    return wsDeployment;
}
Also used : JAXWSDeployment(org.jboss.as.webservices.metadata.model.JAXWSDeployment)

Aggregations

JAXWSDeployment (org.jboss.as.webservices.metadata.model.JAXWSDeployment)7 EJBEndpoint (org.jboss.as.webservices.metadata.model.EJBEndpoint)3 JBossWebMetaData (org.jboss.metadata.web.jboss.JBossWebMetaData)3 ComponentDescription (org.jboss.as.ee.component.ComponentDescription)2 EEModuleClassDescription (org.jboss.as.ee.component.EEModuleClassDescription)2 EEModuleDescription (org.jboss.as.ee.component.EEModuleDescription)2 DeploymentUnit (org.jboss.as.server.deployment.DeploymentUnit)2 ASHelper.getJBossWebMetaData (org.jboss.as.webservices.util.ASHelper.getJBossWebMetaData)2 ClassInfo (org.jboss.jandex.ClassInfo)2 ServiceName (org.jboss.msc.service.ServiceName)2 JBossWebservicesMetaData (org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData)2 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 LinkedList (java.util.LinkedList)1 WebService (javax.jws.WebService)1 WebServiceProvider (javax.xml.ws.WebServiceProvider)1 ClassAnnotationInformation (org.jboss.as.ee.metadata.ClassAnnotationInformation)1 EJBViewDescription (org.jboss.as.ejb3.component.EJBViewDescription)1 SessionBeanComponentDescription (org.jboss.as.ejb3.component.session.SessionBeanComponentDescription)1 CompositeIndex (org.jboss.as.server.deployment.annotation.CompositeIndex)1