Package org.osoa.sca

Examples of org.osoa.sca.ServiceUnavailableException


    public CustomerProfileData getCustomerProfile(String param2) throws RemoteException {
        try {
            return accountService.getCustomerProfile(param2);
        } catch (Exception e) {
            throw new ServiceUnavailableException(e);
        }
    }
View Full Code Here


    public float deposit(String account, float amount) throws RemoteException {
        try {
            return accountService.deposit(account, amount);
        } catch (Exception e) {
            throw new ServiceUnavailableException(e);
        }
    }
View Full Code Here

    public StockSummary sellStock(int purchaseLotNumber, int quantity) throws RemoteException {
        try {
            return accountService.sellStock(purchaseLotNumber, quantity);
        } catch (Exception e) {
            throw new ServiceUnavailableException(e);
        }
    }
View Full Code Here

    public float withdraw(String account, float amount) throws RemoteException {
        try {
            return accountService.withdraw(account, amount);
        } catch (Exception e) {
            throw new ServiceUnavailableException(e);
        }
    }
View Full Code Here

    public AccountLog getAccountLog(int customerID) throws RemoteException {
        try {
            return accountService.getAccountLog(customerID);
        } catch (Exception e) {
            throw new ServiceUnavailableException(e);
        }
    }
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()
                    + " operation="
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

            // 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

    public static Object getStub(NamingEndpoint namingEndpoint) {
        try {
            stub = EJBObjectFactory.createStub(namingEndpoint);
        } 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

            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

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.