Class TellerEJB

  • All Implemented Interfaces:
    Teller, TellerLocal, TellerRemote

    public class TellerEJB
    extends Object
    implements TellerLocal, TellerRemote
    This class implements a Stateless Session Bean wrapper around the Teller business logic. With the light-weight EJB3 design for session beans, there is no reason why the TellerImpl couldn't be the session bean and we could possibly do so through the deployment descriptor. However, adding this specific class permits a clear separation between implementing the business logic and handling RMI, transactions, and security (coming) issues that are part of being a session bean.