Package org.oasisopen.sca

Examples of org.oasisopen.sca.NoSuchServiceException


            } catch(ServiceUnavailableException e) {
                // Ingore and continue
            }
        }

        throw new NoSuchServiceException(serviceName);
    }
View Full Code Here


            CompositeContext compositeContext =
                new CompositeContext(extensionsRegistry, endpointRegistry, null, domainURI.toString(), client, nodeFactory.getDeployer().getSystemDefinitions());

            List<Endpoint> eps = endpointRegistry.findEndpoint(serviceName);
            if (eps == null || eps.size() < 1) {
                throw new NoSuchServiceException(serviceName);
            }
            Endpoint endpoint = eps.get(0); // TODO: what should be done with multiple endpoints?
          
            RuntimeEndpointReference epr;
            try {
View Full Code Here

        }
       
        // assume that if a local node with the looked for domain name is found then that will 
        // know about all services in the domain so if the service isn't found then it doesn't exist
        if (foundDomain) {
            throw new NoSuchServiceException(serviceName);
        }
       
        InvocationHandler handler = new SCAClientHandler(getDomainURI().toString(), serviceName, serviceInterface);
        return (T)Proxy.newProxyInstance(serviceInterface.getClassLoader(), new Class[]{serviceInterface}, handler);
    }
View Full Code Here

    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {

        List<Endpoint> endpoints = endpointRegistry.findEndpoint(endpointReference);
        if (endpoints.size() <1 ) {
            throw new NoSuchServiceException(serviceName);
        }

        String uri = endpoints.get(0).getBinding().getURI();
//        RMIBindingInvoker invoker = new RMIBindingInvoker(rmiHost, uri, method);
//
View Full Code Here

    @Override
    public <T> T getService(Class<T> serviceInterface, String serviceName) throws NoSuchServiceException, NoSuchDomainException {
       
        List<Endpoint> eps = endpointRegistry.findEndpoint(serviceName);
        if (eps == null || eps.size() < 1) {
            throw new NoSuchServiceException(serviceName);
        }
        Endpoint endpoint = eps.get(0); // TODO: what should be done with multiple endpoints?
      
        RuntimeEndpointReference epr;
        try {
View Full Code Here

TOP

Related Classes of org.oasisopen.sca.NoSuchServiceException

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.