Search in sources :

Example 1 with WSEndpointConfigMapping

use of org.jboss.as.webservices.deployers.WSEndpointConfigMapping in project wildfly by wildfly.

the class DeploymentModelBuilderJAXWS_POJO method build.

@Override
protected void build(final Deployment dep, final DeploymentUnit unit) {
    WSLogger.ROOT_LOGGER.trace("Creating JAXWS POJO endpoints meta data model");
    WSEndpointConfigMapping ecm = unit.getAttachment(WSAttachmentKeys.WS_ENDPOINT_CONFIG_MAPPING_KEY);
    for (final POJOEndpoint pojoEndpoint : getJaxwsPojos(unit)) {
        final String pojoEndpointName = pojoEndpoint.getName();
        WSLogger.ROOT_LOGGER.tracef("POJO name: %s", pojoEndpointName);
        final String pojoEndpointClassName = pojoEndpoint.getClassName();
        WSLogger.ROOT_LOGGER.tracef("POJO class: %s", pojoEndpointClassName);
        final Endpoint ep = newHttpEndpoint(pojoEndpointClassName, pojoEndpointName, dep);
        final ServiceName componentViewName = pojoEndpoint.getComponentViewName();
        if (componentViewName != null) {
            ep.setProperty(COMPONENT_VIEW_NAME, componentViewName);
        }
        if (ecm != null) {
            ep.setEndpointConfig(ecm.getConfig(pojoEndpointClassName));
        }
    }
}
Also used : POJOEndpoint(org.jboss.as.webservices.metadata.model.POJOEndpoint) Endpoint(org.jboss.wsf.spi.deployment.Endpoint) ServiceName(org.jboss.msc.service.ServiceName) POJOEndpoint(org.jboss.as.webservices.metadata.model.POJOEndpoint) WSEndpointConfigMapping(org.jboss.as.webservices.deployers.WSEndpointConfigMapping)

Example 2 with WSEndpointConfigMapping

use of org.jboss.as.webservices.deployers.WSEndpointConfigMapping in project wildfly by wildfly.

the class DeploymentModelBuilderJAXWS_EJB method build.

@Override
protected void build(final Deployment dep, final DeploymentUnit unit) {
    WSLogger.ROOT_LOGGER.trace("Creating JAXWS EJB endpoints meta data model");
    WSEndpointConfigMapping ecm = unit.getAttachment(WSAttachmentKeys.WS_ENDPOINT_CONFIG_MAPPING_KEY);
    for (final EJBEndpoint ejbEndpoint : getJaxwsEjbs(unit)) {
        final String ejbEndpointName = ejbEndpoint.getName();
        WSLogger.ROOT_LOGGER.tracef("EJB name: %s", ejbEndpointName);
        final String ejbEndpointClassName = ejbEndpoint.getClassName();
        WSLogger.ROOT_LOGGER.tracef("EJB class: %s", ejbEndpointClassName);
        final Endpoint ep = newHttpEndpoint(ejbEndpointClassName, ejbEndpointName, dep);
        final ServiceName componentViewName = ejbEndpoint.getComponentViewName();
        if (componentViewName != null) {
            ep.setProperty(COMPONENT_VIEW_NAME, componentViewName);
        }
        ep.setEndpointConfig(ecm.getConfig(ejbEndpointClassName));
    }
}
Also used : Endpoint(org.jboss.wsf.spi.deployment.Endpoint) EJBEndpoint(org.jboss.as.webservices.metadata.model.EJBEndpoint) ServiceName(org.jboss.msc.service.ServiceName) EJBEndpoint(org.jboss.as.webservices.metadata.model.EJBEndpoint) WSEndpointConfigMapping(org.jboss.as.webservices.deployers.WSEndpointConfigMapping)

Aggregations

WSEndpointConfigMapping (org.jboss.as.webservices.deployers.WSEndpointConfigMapping)2 ServiceName (org.jboss.msc.service.ServiceName)2 Endpoint (org.jboss.wsf.spi.deployment.Endpoint)2 EJBEndpoint (org.jboss.as.webservices.metadata.model.EJBEndpoint)1 POJOEndpoint (org.jboss.as.webservices.metadata.model.POJOEndpoint)1