package examples.ejb.subclass.child; import javax.ejb.*; import java.rmi.RemoteException; import java.rmi.Remote; /** * The methods in this interface are the public face of ChildBean. * The signatures of the methods are identical to those of the EJBean, except * that these methods throw a java.rmi.RemoteException. *

* Note that the EJBean does not implement this interface. The corresponding * code-generated EJBObject, ChildBeanE, implements this interface and * delegates to the bean. *

* Note that the only method defined in this interface is the one unique to the * ChildBean. All other methods are inherited from the Parent interface. * * @author Copyright (c) 1998 by WebLogic, Inc. All Rights Reserved. * @author Copyright (c) 1998-1999 by BEA WebXpress. All Rights Reserved. */ public interface Child extends examples.ejb.subclass.parent.Parent { /** * Sends back a pre-defined message identifying the method. * This method is unique to the Child bean. * * @return String Message * @exception RemoteException if there is * a communications or systems failure */ public String childSaysHello () throws RemoteException; /** * Calls a method in the parent bean, and * sends back a pre-defined message identifying the method. * This method is unique to the Child bean. * * @return String Message * @exception RemoteException if there is * a communications or systems failure */ public String callParentBean () throws RemoteException; }