Package com.sun.enterprise.jbi.serviceengine.bridge

Examples of com.sun.enterprise.jbi.serviceengine.bridge.EndpointHelper


     * Start all the endpoints specified in jbi.xml. In case of consumer just
     * the state variable is set to started. For providers all the endpoints are
     * activated in NMR. 
     */
    void startAllEndpoints(String su_Name) throws Exception {
        EndpointHelper epHelper = EndpointHelper.getInstance();
        for (DescriptorEndpointInfo ep : registryManager.getAllConsumerEP(su_Name))
            ep.setStarted(true);

        for (DescriptorEndpointInfo ep : registryManager.getAllProviderEP(su_Name)) {
            if(registryManager.getSEEndpoint(ep)==null) {
                WebServiceEndpoint endpoint = registryManager.getWSEndpoint(ep, su_Name);
                if(endpoint == null)
                throw new Exception(
                        translator.getString("serviceengine.endpoint_mismatch",
                                            ep.getServiceName().getLocalPart(),
                                            su_Name));
                createEndpoint(endpoint, ep);
            }
            if (ep.isPrivate()) {
                WebServiceEndpoint endpoint =
                        registryManager.getSEEndpoint(ep).getEndpointDesc();
                endpoint.setJBIPrivate(true);
            }
            ep.setStarted(true);
            // now activate the endpoint in NMR
            epHelper.enableEndpoint(ep.getServiceName(), ep.getEndpointName());
        }
    }
View Full Code Here


    /**
     * Disable the endpoints enabled in during start
     */
    void stopAllEndpoints(String su_Name) {
        EndpointHelper epHelper = EndpointHelper.getInstance();
        for (DescriptorEndpointInfo ep : registryManager.getAllConsumerEP(su_Name))
            ep.setStarted(false);

        for (DescriptorEndpointInfo ep : registryManager.getAllProviderEP(su_Name)) {
            ep.setStarted(false);
            // now de-activate the endpoint in NMR
            epHelper.disableEndpoint(ep.getServiceName(), ep.getEndpointName());
        }
    }
View Full Code Here

                    binding, // Derive binding
                    primaryWsdl, // primary WSDL
                    docs, // Collection of imported WSDLs and schema
                    catalogURL
                    );
            EndpointHelper epHelper = EndpointHelper.getInstance();
            epHelper.registerEndpoint(endpoint);
            registryManager.getSEEndpoint(ep).setWsep(wsep);

        } finally {
            Utility.setContextClassLoader(origCl);
        }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.jbi.serviceengine.bridge.EndpointHelper

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.