Package org.osoa.sca

Examples of org.osoa.sca.ServiceUnavailableException


            // this method should locate a viable target service and complete the
            // endpoint configuration
            endpointResolver.resolve();
           
            if (endpoint.isUnresolved()){
                throw new ServiceUnavailableException("Unable to resolve service for component: " +
                        endpoint.getSourceComponent().getName() +
                        " reference: " +
                        endpoint.getSourceComponentReference().getName() +
                        " target: " +
                        endpoint.getTargetName());
View Full Code Here


        if ((to == null) || (to.getURI().equals("/") || (to.getContract() == null) || (to.getContract().isUnresolved()))) {

            EndpointReference eprTo = provider.getServiceEndpoint();

            if ( (eprTo == null) || (eprTo.getURI() == null)) {
                throw new ServiceUnavailableException("Endpoint for service: " + provider.getSCABinding().getURI()
                    + " can't be found for component: "
                    + provider.getComponent().getName()
                    + " reference: "
                    + provider.getComponentReference().getName());
            }
View Full Code Here

            ((ep != null) && (ep.getContract().isUnresolved()))){
           
            EndpointReference serviceEPR = provider.getServiceEndpoint();
           
            if ( serviceEPR == null){
                throw new ServiceUnavailableException("Endpoint for service: " +
                                                      provider.getSCABinding().getURI() +
                                                      " can't be found for component: " +
                                                      provider.getComponent().getName() +
                                                      " reference: " +
                                                      provider.getComponentReference().getName());
View Full Code Here

            return getDistributedProvider().createInvoker(operation);
        } else {
            RuntimeWire wire = reference.getRuntimeWire(binding);
            Invoker invoker = getInvoker(wire, operation);
            if (invoker == null) {
                throw new ServiceUnavailableException("Unable to create SCA binding invoker for local target " + component.getName()
                    + " reference "
                    + reference.getName()
                    + " (bindingURI="
                    + binding.getURI()
                    + " operation="
View Full Code Here

    private static Object getStub(NamingEndpoint namingEndpoint, InterfaceInfo ejbInterface) {
        try {
            stub = EJBObjectFactory.createStub(namingEndpoint, ejbInterface);
        } catch (NamingException e) {
            exception = new ServiceUnavailableException(e);
            e.printStackTrace();
            throw (ServiceUnavailableException)exception;
        } catch (CreateException e) {
            exception = new ServiceUnavailableException(e);
            throw (ServiceUnavailableException)exception;
        } catch (RemoteException e) {
            exception = new ServiceRuntimeException(e);
            throw (ServiceRuntimeException)exception;
        }
View Full Code Here

            // this method should locate a viable target service and complete the
            // endpoint configuration
            endpointResolver.resolve();
           
            if (endpoint.isUnresolved()){
                throw new ServiceUnavailableException("Unable to resolve service for component: " +
                        endpoint.getSourceComponent().getName() +
                        " reference: " +
                        endpoint.getSourceComponentReference().getName() +
                        " target: " +
                        endpoint.getTargetName());
View Full Code Here

            return getDistributedProvider().createInvoker(operation);
        } else {
            RuntimeWire wire = reference.getRuntimeWire(binding);
            Invoker invoker = getInvoker(wire, operation);
            if (invoker == null) {
                throw new ServiceUnavailableException("Service not found for component "
                    + component.getName()
                    + " reference "
                    + reference.getName()
                    + " (bindingURI="
                    + binding.getURI()
View Full Code Here

        if ((to == null) || (to.getURI().equals("/") || (to.getContract() == null) || (to.getContract().isUnresolved()))) {

            EndpointReference eprTo = provider.getServiceEndpoint();

            if (eprTo == null) {
                throw new ServiceUnavailableException("Endpoint for service: " + provider.getSCABinding().getURI()
                    + " can't be found for component: "
                    + provider.getComponent().getName()
                    + " reference: "
                    + provider.getComponentReference().getName());
            }
View Full Code Here

            return distributedProvider.createInvoker(operation);
        } else {
            RuntimeWire wire = reference.getRuntimeWire(binding);
            Invoker invoker = getInvoker(wire, operation);
            if (invoker == null) {
                throw new ServiceUnavailableException("No service invoker is available for reference " + reference
                    .getName()
                    + " (bindingURI="
                    + binding.getURI()
                    + " operation="
                    + operation.getName()
View Full Code Here

    public static Object getStub(NamingEndpoint namingEndpoint, InterfaceInfo ejbInterface) {
        try {
            stub = EJBObjectFactory.createStub(namingEndpoint, ejbInterface);
        } catch (NamingException e) {
            exception = new ServiceUnavailableException(e);
            e.printStackTrace();
            throw (ServiceUnavailableException)exception;
        } catch (CreateException e) {
            exception = new ServiceUnavailableException(e);
            throw (ServiceUnavailableException)exception;
        } catch (RemoteException e) {
            exception = new ServiceRuntimeException(e);
            throw (ServiceRuntimeException)exception;
        }
View Full Code Here

TOP

Related Classes of org.osoa.sca.ServiceUnavailableException

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.