Search in sources :

Example 16 with Deployment

use of org.jboss.wsf.spi.deployment.Deployment in project wildfly by wildfly.

the class EndpointPublisherImpl method destroy.

@Override
public void destroy(Context context) throws Exception {
    List<Endpoint> eps = context.getEndpoints();
    if (eps == null || eps.isEmpty()) {
        return;
    }
    Deployment dep = eps.get(0).getService().getDeployment();
    try {
        stopWebApp(dep);
    } finally {
        undeploy(dep);
    }
}
Also used : Endpoint(org.jboss.wsf.spi.deployment.Endpoint) Deployment(org.jboss.wsf.spi.deployment.Deployment)

Aggregations

Deployment (org.jboss.wsf.spi.deployment.Deployment)16 SOAPAddressRewriteMetadata (org.jboss.wsf.spi.metadata.config.SOAPAddressRewriteMetadata)6 DefaultDeploymentModelFactory (org.jboss.ws.common.deployment.DefaultDeploymentModelFactory)4 Bus (org.apache.cxf.Bus)3 BusLifeCycleManager (org.apache.cxf.buslifecycle.BusLifeCycleManager)3 DeploymentUnit (org.jboss.as.server.deployment.DeploymentUnit)3 Endpoint (org.jboss.wsf.spi.deployment.Endpoint)3 HashMap (java.util.HashMap)2 ServiceName (org.jboss.msc.service.ServiceName)2 IOException (java.io.IOException)1 Writer (java.io.Writer)1 ArrayList (java.util.ArrayList)1 CountDownLatch (java.util.concurrent.CountDownLatch)1 ServletConfig (javax.servlet.ServletConfig)1 ServletException (javax.servlet.ServletException)1 ServletRequest (javax.servlet.ServletRequest)1 HttpServletResponseWrapper (javax.servlet.http.HttpServletResponseWrapper)1 QName (javax.xml.namespace.QName)1 SoapMessage (org.apache.cxf.binding.soap.SoapMessage)1 Header (org.apache.cxf.headers.Header)1