examples.cluster.ejb.account
Interface AccountAll Superinterfaces: javax.ejb.EJBObject, java.rmi.Remote
public interface Account extends javax.ejb.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.
Copyright (c) 1999-2003 by BEA Systems, Inc. All Rights Reserved.
Method Summary AccountResult balance()
Balance in account.AccountResult deposit(double amount)
Deposits an amount.AccountResult withdraw(double amount)
Withdraws an amount.
Methods inherited from interface javax.ejb.EJBObject getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
Method Detail balance
public AccountResult balance() throws java.rmi.RemoteExceptionBalance in account.
Returns: AccountResult account result
Throws: java.rmi.RemoteException - if there is a communications or systems failure
deposit
public AccountResult deposit(double amount) throws java.rmi.RemoteExceptionDeposits an amount.
Parameters: amount - double amount to deposit
Returns: AccountResult Account result
Throws: java.rmi.RemoteException - if there is a communications or systems failure
withdraw
public AccountResult withdraw(double amount) throws AccountException, java.rmi.RemoteExceptionWithdraws an amount.
Parameters: amount - double amount to withdraw
Returns: AccountResult Account result
Throws: AccountException - if there is an error while depositing
java.rmi.RemoteException - if there is a communications or systems failure