Java Tutorial - Java Scipt : The Home Interface

Java Tutorial - Java Scipt :

The Home Interface


The following code is the home interface for our session bean. This will be used to create and return an instance of the remote interface to the client: package com.oldfriends.session;

import com.oldfriends.session.UserSessionRemote;
import java.rmi.RemoteException;
import javax.ejb.*;
public interface UserSessionHome extends EJBHome
{
UserSessionRemote create() throws RemoteException, CreateException;
}
The only method we add here is the create method.