Package org.apache.cxf.endpoint

Examples of org.apache.cxf.endpoint.Server.start()


        if (server == null) {
            LOG.severe("Failed to create CXF facade service endpoint.");
            return;
        }
       
        server.start();
       
        // save the server for clean up later
        endpoints.put(spec.getDisplayName(), new InboundEndpoint(server, invoker));
    }
View Full Code Here


        JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
        factory.setServiceClass(NoRootBare.class);
        factory.setServiceBean(new NoRootBareImpl());
        factory.setAddress("local://localhost/testNoRootBare");
        Server server = factory.create();
        server.start();
       
        QName serviceName = new QName("http://service.jaxws.cxf.apache.org/", "NoRootBareService");
        QName portName = new QName("http://service.jaxws.cxf.apache.org/", "NoRootBarePort");

        ServiceImpl service = new ServiceImpl(getBus(), (URL)null, serviceName, null);
View Full Code Here

            };
            ServerLifeCycleManager mgr = cxfBus.getExtension(ServerLifeCycleManager.class);
            if (mgr != null) {
                mgr.registerListener(stopHook);
            }
            server.start();
        } finally {
            Thread.currentThread().setContextClassLoader(oldClassLoader);
        }
    }
View Full Code Here

        sf.setAddress("http://localhost:9000/test");
        sf.setServiceClass(org.apache.cxf.systest.jaxb.service.TestServiceImpl.class);
        sf.setStart(false);
       
        Server server = sf.create();
        server.start();
        server.stop();
    }
    /**
     * @param args
     */
 
View Full Code Here

        JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
        factory.setServiceClass(NoRootBare.class);
        factory.setServiceBean(new NoRootBareImpl());
        factory.setAddress("local://localhost/testNoRootBare");
        Server server = factory.create();
        server.start();
       
        QName serviceName = new QName("http://service.jaxws.cxf.apache.org/", "NoRootBareService");
        QName portName = new QName("http://service.jaxws.cxf.apache.org/", "NoRootBarePort");

        ServiceImpl service = new ServiceImpl(getBus(), (URL)null, serviceName, null);
View Full Code Here

        if (server == null) {
            LOG.severe("Failed to create CXF facade service endpoint.");
            return;
        }
       
        server.start();
       
        // save the server for clean up later
        endpoints.put(spec.getDisplayName(), new InboundEndpoint(server, invoker));
    }
View Full Code Here

   
    @Test
    public void testServerRegistryPreShutdown() {
        ServerRegistryImpl serverRegistryImpl = new ServerRegistryImpl();       
        Server server = new DummyServer(serverRegistryImpl);
        server.start();
        assertEquals("The serverList should have one service", serverRegistryImpl.serversList.size(), 1);
        serverRegistryImpl.preShutdown();
        assertEquals("The serverList should be clear ", serverRegistryImpl.serversList.size(), 0);
        serverRegistryImpl.postShutdown();
        assertEquals("The serverList should be clear ", serverRegistryImpl.serversList.size(), 0);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.