// Copyright © 2002 by Apple Computer, Inc., All Rights Reserved.
//
// You may incorporate this Apple sample code into your own code
// without restriction. This Apple sample code has been provided "AS IS"
// and the responsibility for its operation is yours. You may redistribute
// this code, but you are not permitted to redistribute it as
// "Apple sample code" after having made changes.

shell> cat src/MailListEJB.java 


import java.rmi.RemoteException;
import javax.ejb.*;

public class MailListEJB implements EntityBean {

    transient private EntityContext ctx;

    public String email;

    public String getEmail() 
    { 
        return email; 
    }

    public void setEmail(String em) 
    { 
        this.email = em;
    }
    
    public String ejbCreate(String em) {
        this.email = em;
        return null;
    }

    public void ejbPostCreate(String email) {
    }

    public void setEntityContext(EntityContext ctx) {
        this.ctx = ctx;
    }

    public void unsetEntityContext() {
        ctx = null;
    }

    public void ejbActivate() {
    }

    public void ejbPassivate() {
    }

    public void ejbLoad() {
    }

    public void ejbStore() {
    }

    public void ejbRemove() {
    }
}