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 methods that are callable by the client.

  • The bean class implements the javax.ejb.SessionBean interface. In addition, it implements all business methods listed in the remote interface.

  • The deployment descriptors define the session bean type, transaction, security, and run-time properties.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.127.37