EJB

EJB Projects

EJB Project 1

EJB Examples

EJB EXAMPLE

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

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: