EJB Projects

EJB Project 1

EJB Examples


Home Interface:
Previous Home Next

Home interface for a session bean provides the mechanism by which the container creates new session beans on behalf of the client.

It's just like the remote interface, home interface is declared by the bean developer in RMI syntax, and again, is implemented by the container provider's tools. There is little-to-no coding to be it's done by the programmer, it is really just declarative work at this point.

Read the description of the Home Interface below and note the comments in the code fragment.
package ejb.demo;
import javax.ejb.*;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.*;


   * This interface is extremely simple it declares only

   * one create method.


public interface Home extends EJBHome
public  create() throws CreateException, RemoteException;
Previous Home Next