L'interfaccia definisce i metodi esportati dal componente
package it.html.ejb.entity.bmp;
import java.rmi.*;
import javax.ejb.*;
public interface BankAccount extends EJBObject {
//Metodi di logica (deposito e prelievo)
public void deposito(double amt)throws RemoteException,AccountException;
public void prelievo(double amt)throws RemoteException,AccountException;
//Metodi setter delle proprietà
public double getSaldo()throws RemoteException;
public String getNome()throws RemoteException;
public void setNome(String name)throws RemoteException;
public String getAccountID()throws RemoteException;
public void setAccountID(String id)throws RemoteException;
}