Search in sources :

Example 21 with WebServiceEndpoint

use of com.sun.enterprise.deployment.WebServiceEndpoint in project Payara by payara.

the class WebServicesDeploymentMBean method deploy.

public synchronized void deploy(WebServicesDescriptor wsDesc, WebServiceDeploymentNotifier notifier) {
    for (WebService svc : wsDesc.getWebServices()) {
        for (WebServiceEndpoint endpoint : svc.getEndpoints()) {
            deploy(endpoint);
            notifier.notifyDeployed(endpoint);
        }
    }
}
Also used : WebService(com.sun.enterprise.deployment.WebService) WebServiceEndpoint(com.sun.enterprise.deployment.WebServiceEndpoint)

Example 22 with WebServiceEndpoint

use of com.sun.enterprise.deployment.WebServiceEndpoint in project Payara by payara.

the class AppServRegistry method deregisterEndpoint.

/**
 * Deregister WS Endpoint
 */
protected void deregisterEndpoint(@NotNull final Endpoint endpoint) {
    final WebServiceEndpoint wsServiceDescriptor = endpoint.getDescriptor();
    final String wsPath = getWebServiceEndpointPath(wsServiceDescriptor);
    if (logger.isLoggable(Level.FINE)) {
        logger.log(Level.FINE, MessagesMessages.WSTCP_1111_APP_SERV_REG_DEREGISTER_ENDPOINT(wsServiceDescriptor.getWebService().getName(), wsPath, wsServiceDescriptor.implementedByEjbComponent()));
    }
    WSTCPAdapterRegistryImpl.getInstance().deregisterEndpoint(wsPath);
}
Also used : WebServiceEndpoint(com.sun.enterprise.deployment.WebServiceEndpoint)

Example 23 with WebServiceEndpoint

use of com.sun.enterprise.deployment.WebServiceEndpoint in project Payara by payara.

the class AppServRegistry method registerEndpoint.

/**
 * Register new WS Endpoint
 */
protected void registerEndpoint(@NotNull final Endpoint endpoint) {
    final WebServiceEndpoint wsServiceDescriptor = endpoint.getDescriptor();
    if (wsServiceDescriptor != null && isTCPEnabled(wsServiceDescriptor)) {
        final String contextRoot = getEndpointContextRoot(wsServiceDescriptor);
        final String urlPattern = getEndpointUrlPattern(wsServiceDescriptor);
        final String wsPath = getWebServiceEndpointPath(wsServiceDescriptor);
        if (logger.isLoggable(Level.FINE)) {
            logger.log(Level.FINE, MessagesMessages.WSTCP_1110_APP_SERV_REG_REGISTER_ENDPOINT(wsServiceDescriptor.getServiceName(), wsPath, wsServiceDescriptor.implementedByEjbComponent()));
        }
        final WSEndpointDescriptor descriptor = new WSEndpointDescriptor(wsServiceDescriptor, contextRoot, urlPattern, endpoint.getEndpointSelector());
        WSTCPAdapterRegistryImpl.getInstance().registerEndpoint(wsPath, descriptor);
    }
}
Also used : WebServiceEndpoint(com.sun.enterprise.deployment.WebServiceEndpoint)

Aggregations

WebServiceEndpoint (com.sun.enterprise.deployment.WebServiceEndpoint)23 ServiceReferenceDescriptor (com.sun.enterprise.deployment.ServiceReferenceDescriptor)5 WebService (com.sun.enterprise.deployment.WebService)5 EjbDescriptor (com.sun.enterprise.deployment.EjbDescriptor)4 ArrayList (java.util.ArrayList)4 EjbBundleDescriptor (com.sun.enterprise.deployment.EjbBundleDescriptor)3 HandlerChainContainer (com.sun.enterprise.deployment.types.HandlerChainContainer)3 Iterator (java.util.Iterator)3 QName (javax.xml.namespace.QName)3 WebServiceHandler (com.sun.enterprise.deployment.WebServiceHandler)2 WebServicesDescriptor (com.sun.enterprise.deployment.WebServicesDescriptor)2 MessageSecurityBindingDescriptor (com.sun.enterprise.deployment.runtime.common.MessageSecurityBindingDescriptor)2 Model (com.sun.xml.rpc.spi.model.Model)2 Port (com.sun.xml.rpc.spi.model.Port)2 URL (java.net.URL)2 Collection (java.util.Collection)2 HashSet (java.util.HashSet)2 Application (com.sun.enterprise.deployment.Application)1 BundleDescriptor (com.sun.enterprise.deployment.BundleDescriptor)1 ServiceRefPortInfo (com.sun.enterprise.deployment.ServiceRefPortInfo)1