Serves as a factory for creating, finding or removing EJB Objects.
Used by clients to create and remove references to beans in a container.
Consists of home interface and distributable object that implements the home interface.
public interface ShoppingCartHome extends javax.ejb.EJBHome {
public ShoppingCart create ( String name );
public ShoppingCart create ( String name, int a );
public void remove ( String name );
}
Home Interface maps its create method to an equivalent method ejbCreate in bean class with same parameters and similarly remove to ejbRemove.
When a client calls create, the container will call ejbCreate to service this request. A new EJBObject is then created by the container and sent back to the client.