Package org.osoa.sca

Examples of org.osoa.sca.ServiceUnavailableException


     */
    public AccountReport getAccountReport(int customerID) {
        try {
            return accountService.getAccountReport(customerID);
        } catch (Exception e) {
            throw new ServiceUnavailableException(e);
        }
    }
View Full Code Here


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

    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

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

     */
    public AccountReport getAccountReport(int customerID) {
        try {
            return accountService.getAccountReport(customerID);
        } catch (Exception e) {
            throw new ServiceUnavailableException(e);
        }
    }
View Full Code Here

    public StockSummary purchaseStock(int customerID, StockSummary stockSummary) throws RemoteException {
        try {
            return accountService.purchaseStock(customerID, stockSummary);
        } catch (Exception e) {
            throw new ServiceUnavailableException(e);
        }
    }
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.