// 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/MailListHome.java 


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

public interface MailListHome extends EJBHome {
    public MailList create(String name)
        throws CreateException, RemoteException;
    public MailList findByPrimaryKey(String pk)
        throws FinderException, RemoteException;
    public Collection findAll()
        throws RemoteException, FinderException;
}


shell> cat src/MailList.java

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

public interface MailList extends EJBObject {
    String getEmail() throws RemoteException;
    void setEmail(String em) throws RemoteException;
}