Remote and Local Interfaces

During design, you need to decide on the kind of interfaces you will provide to your enterprise bean. The interfaces you provide can be local or remote. Remote interfaces are RMI interfaces that are provided to allow the clients of a bean to be location-independent. EJB 2.0 introduced local interfaces to improve performance of client access to enterprise beans.

Remote Interfaces

A remote client accesses a session bean or an entity bean through the bean's remote interface and remote home interface. The remote and remote home interfaces of the bean provide the remote client view of the EJB.

  • The remote interface extends the javax.ejb.EJBObject interface. Container tools generate the corresponding EJB object implementing ...

Get Sams Teach Yourself EJB in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.