You've covered a lot of ground today. You've been shown that there are stateless and stateful Session beans, and each has its own lifecycle. You've seen in detail how to specify a Session bean by defining its home and remote interfaces and how to implement a bean by providing corresponding implementations for the methods in the home and remote interfaces. You have also been shown how to implement the lifecycle methods as defined in the javax.ejb.SessionBean interface.

You've also read how the deployment descriptor provides configuration information describing the bean's characteristics and dependencies to the EJB container. Additionally, you've seen that those dependencies are logical dependencies that must be mapped by the EJB deployer ...

Get Sams Teach Yourself J2EE™ in 21 Days, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.