Package org.apache.cxf.jca.outbound

Examples of org.apache.cxf.jca.outbound.CXFConnectionFactory



        // retrieve the connection factory from JNDI
        //
        Context ctx = new InitialContext();
        CXFConnectionFactory factory = (CXFConnectionFactory)ctx.lookup(EIS_JNDI_NAME);

        // create the connection
        //
        CXFConnectionSpec spec = new CXFConnectionSpec();
        spec.setWsdlURL(getClass().getResource("/wsdl/hello_world.wsdl"));
        spec.setBusConfigURL(getClass().getResource("/etc/cxf_client.xml"));
        spec.setServiceName(new QName("http://apache.org/hello_world_soap_http", "SOAPService"));
        spec.setEndpointName(new QName("http://apache.org/hello_world_soap_http", "SoapPort"));
        spec.setServiceClass(Greeter.class);
        return factory.getConnection(spec);
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.jca.outbound.CXFConnectionFactory

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.