All Examples  All Cluster Examples  This Example  This Package

Interface examples.cluster.ejb.account.Account

public interface Account
extends EJBObject
The methods in this interface are the public face of AccountBean. The signatures of the methods are identical to those of the bean, except that these methods throw a java.rmi.RemoteException. Note that the EJBean does not implement this interface. The corresponding code-generated EJBObject implements this interface and delegates to the EJBean.

Author:
Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.

Method Index

 o balance()
Balance in account.
 o deposit(double)
Deposits an amount.
 o withdraw(double)
Withdraws an amount.

Methods

 o balance
 public abstract AccountResult balance() throws RemoteException
Balance in account.

Returns:
AccountResult Account result
Throws: RemoteException
if there is a communications or systems failure
 o deposit
 public abstract AccountResult deposit(double amount) throws RemoteException
Deposits an amount.

Parameters:
amount - double Amount to deposit
Returns:
AccountResult Account result
Throws: RemoteException
if there is a communications or systems failure
 o withdraw
 public abstract AccountResult withdraw(double amount) throws AccountException, RemoteException
Withdraws an amount.

Parameters:
amount - double Amount to withdraw
Returns:
AccountResult Account result
Throws: AccountException
if there is an error while depositing
Throws: RemoteException
if there is a communications or systems failure

All Examples  All Cluster Examples  This Example  This Package