Session Bean Files

Like other enterprise beans, a session bean consists of the home interface, the component interface, the bean class, and the deployment descriptor.

  • The home interface is either a remote home interface or local home interface. A remote home interface extends the javax.ejb.EJBHome interface, whereas a local home interface extends javax.ejb.EJBLocalObject. The home interface is used as the bean factory. The client uses the home interface to manage the life cycle of the session bean.

  • The component interface is either a remote interface or a local interface. The remote interface extends the javax.ejb.EJBObject interface and the local interface extends the javax.ejb.EJBLocalObject interface. The component interface defines all the ...

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.