1 22 package org.jboss.ejb3.test.bank; 23 24 import java.rmi.*; 25 import javax.ejb.*; 26 27 32 public interface Account extends EJBObject 33 { 34 36 38 40 42 public void deposit(float amount) throws RemoteException; 44 45 public void withdraw(float amount) throws RemoteException; 46 47 public float getBalance() throws RemoteException; 48 49 public Customer getOwner() throws RemoteException; 50 51 public void setData(AccountData data) throws RemoteException; 52 53 public AccountData getData() throws RemoteException; 54 } 55 56 70 | Popular Tags |