package ejb.demo; /** * Demo -- this is the "remote" interface of * our enterprise JavaBean, it * defines only one simple method called * demoSelect(). As this is meant to be * the simplest of examples demoSelect() * never goes to a database, it just * returns a string * * Note: The implementation of this interface is * provided by the container tools * but the demoSelect() method and any * other methods in this interface * will need to have equivalent * implementations in the DemoBean.java * which is supplied by the bean writer * ..i.e., you! */ import javax.ejb.*; import java.rmi.*; public interface Demo extends javax.ejb.EJBObject { // TBD: Add any additional remote method interfaces // NB this simple example does not even do a // lookup in the database public String demoSelect() throws RemoteException; }