Summary

Today you learned how to implement and deploy a stateful session bean. The home interface extends javax.ejb.EJBHome interface and contains create method(s). The remote interface extends javax.ejb.EJBObject and contains the business methods callable by the client. The enterprise bean class implements the javax.ejb.SessionBean interface. In addition, it implements the ejbCreate method(s) corresponding to the create methods defined in the home interface and business methods defined in the remote interface. The container recognizes the session bean type from the bean's deployment descriptor.

The EJB container serializes all calls to the stateful session bean instance and throws exception if clients attempt to simultaneously access the same ...

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.