Package org.apache.cxf.bus

Examples of org.apache.cxf.bus.CXFBusFactory


        BusFactory.setDefaultBus(null);
    }
   
    @Test
    public void testServerFactory() {
        bus = new CXFBusFactory().createBus();
        PolicyEngineImpl pei = new PolicyEngineImpl();
        bus.setExtension(pei, PolicyEngine.class);
        pei.setBus(bus);
       
        Policy p = new Policy();
View Full Code Here


            } catch (NamingException e) {
                LOG.warn("Failed to create naming context", e);
            }
        }

        this.bus = (new CXFBusFactory()).createBus();
        this.configurationBaseUrl = configurationBaseUrl;
       
        Class endpointClass = classLoader.loadClass(endpointClassName);
        this.endpointInstance = endpointClass.newInstance();
       
View Full Code Here

        assert this.location != null : "null location received";
               
        Class beanClass = ejbDeploymentContext.getBeanClass();   
        Context context = ejbDeploymentContext.getComponentContext();
       
        Bus bus = (new CXFBusFactory()).createBus();
        bus.setExtension(new ServerJNDIResolver(context), JNDIResolver.class);
        bus.setExtension(portInfo, PortInfo.class)
        bus.setExtension(ejbDeploymentContext.getDeploymentInfo(), DeploymentInfo.class);
       
        EJBWebServiceContainer container =
View Full Code Here

    public void testBase64() throws Exception  {
        URL wsdl = getClass().getResource("/wsdl/others/dynamic_client_base64.wsdl");
        assertNotNull(wsdl);
        String wsdlUrl = null;
        wsdlUrl = wsdl.toURI().toString();
        CXFBusFactory busFactory = new CXFBusFactory();
        Bus bus = busFactory.createBus();
        DynamicClientFactory dynamicClientFactory = DynamicClientFactory.newInstance(bus);
        Client client = dynamicClientFactory.createClient(wsdlUrl);
        assertNotNull(client);
    }
View Full Code Here

    public void testJaxWsDynamicClient() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/others/dynamic_client_base64.wsdl");
        assertNotNull(wsdl);
        String wsdlUrl = null;
        wsdlUrl = wsdl.toURI().toString();
        CXFBusFactory busFactory = new CXFBusFactory();
        Bus bus = busFactory.createBus();
        org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory dynamicClientFactory =
            org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory.newInstance(bus);
        Client client = dynamicClientFactory.createClient(wsdlUrl);
        assertNotNull(client);
    }
View Full Code Here

        BusFactory.setDefaultBus(null);
    }
   
    @Test
    public void testServerFactory() {
        bus = new CXFBusFactory().createBus();
       
        Policy p = new Policy();
        p.setId("test");
       
        JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
View Full Code Here

public final class DynamicClientEndpointCreationLoop {
   
    private Bus bus;
   
    private DynamicClientEndpointCreationLoop() {
        CXFBusFactory busFactory = new CXFBusFactory();
        bus = busFactory.createBus();
    }
View Full Code Here

    }

    @Test
    @Ignore
    public void xtestCXFConfiguredServerEndpoint() {
        CXFBusFactory cf = new CXFBusFactory();
        factory = cf;
        BusFactory.setDefaultBus(null);
        Map<String, Object> properties = new HashMap<String, Object>();
        properties.put(Configurer.USER_CFG_FILE_PROPERTY_NAME,
            "org/apache/cxf/jaxws/configured-endpoints.xml");
        BusFactory.setDefaultBus(cf.createBus(null, properties));
        initializeBus();
        System.setProperty(BusFactory.BUS_FACTORY_PROPERTY_NAME, CXFBusFactory.class.getName());
        doTestConfiguredServerEndpoint();
    }
View Full Code Here

    public void testBase64() throws Exception  {
        URL wsdl = getClass().getResource("/wsdl/others/dynamic_client_base64.wsdl");
        assertNotNull(wsdl);
        String wsdlUrl = null;
        wsdlUrl = wsdl.toURI().toString();
        CXFBusFactory busFactory = new CXFBusFactory();
        Bus bus = busFactory.createBus();
        DynamicClientFactory dynamicClientFactory = DynamicClientFactory.newInstance(bus);
        Client client = dynamicClientFactory.createClient(wsdlUrl);
        assertNotNull(client);
    }
View Full Code Here

    public void testJaxWsDynamicClient() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/others/dynamic_client_base64.wsdl");
        assertNotNull(wsdl);
        String wsdlUrl = null;
        wsdlUrl = wsdl.toURI().toString();
        CXFBusFactory busFactory = new CXFBusFactory();
        Bus bus = busFactory.createBus();
        org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory dynamicClientFactory =
            org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory.newInstance(bus);
        Client client = dynamicClientFactory.createClient(wsdlUrl);
        assertNotNull(client);
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.bus.CXFBusFactory

Copyright © 2018 www.massapicom. 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.