Package org.apache.cxf.dosgi.samples.greeter.rest

Examples of org.apache.cxf.dosgi.samples.greeter.rest.GreeterService


    protected void useGreeterService(final BundleContext bc, ServiceReference reference) {
        Object svc = bc.getService(reference);
        if (!(svc instanceof GreeterService)) {
            return;
        }
        final GreeterService greeter = (GreeterService) svc;

        Thread t = new Thread(new Runnable() {
            public void run() {
                greeterUI(bc, greeter);
            }
View Full Code Here


            installBundle("org.apache.cxf.dosgi", "cxf-dosgi-ri-dsw-cxf", null, "jar");
        }
    }

    private GreeterInfo useService(ServiceReference sref) {
        GreeterService hs = (GreeterService)bundleContext.getService(sref);
        assertNotNull(hs);
        try {
            return hs.greetMe("Fred");
        } catch (Exception ex) {
            fail("unexpected exception");
        }
        return null;
    }
View Full Code Here

        // TODO : get this address using a DistributionProvider interface
        String address = "http://localhost:9090/greeter";
        waitForEndpoint(address + "/greeter");
       
        //do the invocation using a CXF api
        GreeterService greeter1 = null;
        boolean serviceUsed = false;
        try {
          JAXRSClientFactoryBean factory = new JAXRSClientFactoryBean();
            factory.setServiceClass(GreeterService.class);
            factory.setAddress(address);
View Full Code Here

TOP

Related Classes of org.apache.cxf.dosgi.samples.greeter.rest.GreeterService

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.