samples.j2ee.ejb.subclass.child
Interface Child


public interface Child
extends Parent

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 only method defined in this interface is the one unique to the ChildBean. All other methods are inherited from the Parent interface.


Method Summary
 java.lang.String callParentBean()
          Calls a method in the parent bean, and sends back a pre-defined message identifying the method.
 java.lang.String childSaysHello()
          Sends back a pre-defined message identifying the method.
 
Methods inherited from interface samples.j2ee.ejb.subclass.parent.Parent
parentMethodOnly, parentSaysHello
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

childSaysHello

public java.lang.String childSaysHello()
                                throws java.rmi.RemoteException
Sends back a pre-defined message identifying the method. This method is unique to the Child bean.
Returns:
String Message
Throws:
java.rmi.RemoteException - if there is a communications or systems failure

callParentBean

public java.lang.String callParentBean()
                                throws java.rmi.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.
Returns:
String Message
Throws:
java.rmi.RemoteException - if there is a communications or systems failure