Package org.objectweb.celtix.bus.jaxws

Examples of org.objectweb.celtix.bus.jaxws.EndpointImpl


    @Override
    public Endpoint createEndpoint(String bindingId, Object implementor) {
        Endpoint ep = null;
        if (EndpointUtils.isValidImplementor(implementor)) {
            ep = new EndpointImpl(Bus.getCurrent(), implementor, bindingId);
            return ep;
        } else {
            throw new WebServiceException(new Message("INVALID_IMPLEMENTOR_EXC", LOG).toString());
        }
    }
View Full Code Here


            } else {
                ref =
                    EndpointReferenceUtils.getEndpointReference(bus.getWSDLManager(),
                                                            impl);
            }
            EndpointImpl ep = new EndpointImpl(bus, impl, null, ref);
           
            //doesn't really matter what URL is used here
            ep.publish("http://localhost" + (urlPat.charAt(0) == '/' ? "" : "/") + urlPat);
        } catch (ClassNotFoundException ex) {
            // TODO Auto-generated catch block
            ex.printStackTrace();
        } catch (InstantiationException ex) {
            // TODO Auto-generated catch block
View Full Code Here

            if (classes.size() > 0) {
                LOG.info("publishing endpoint");
                isProvider = true;
                Class<?> clz = classes.iterator().next();
                serviceImplementation = clz.newInstance();
                endpoint = new EndpointImpl(bus, serviceImplementation, null);
                // dummy endpoint to publish on
                endpoint.publish("http://foo/bar/baz");
            } else {
                LOG.info("starting consumer");
                classes = finder.findServiceConsumerClasses();
View Full Code Here

        GeronimoTransportFactory tfactory = getTransportFactory();
        assert tfactory != null : "failed to get transport factory";
       
        try {
            tfactory.setCurrentContainer(this);
            EndpointImpl ep = new EndpointImpl(getBus(), target,
                                               "http://schemas.xmlsoap.org/wsdl/soap/http", ref);
            LOG.fine("publishing endpoint " + ep);
            ep.publish("http://localhost/");
            publishedEndpoint = ep;
           
            assert serverTransport != null : "server transport not initialized";
        } finally {
            tfactory.setCurrentContainer(null);
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.bus.jaxws.EndpointImpl

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.