Composition of a Session Bean

A Session Bean is composed of three parts: the home interface, the component interface, and the Bean class. The home interfaces list the life cycle methods of the bean, whereas the component interfaces list its business methods. The Bean class, or Bean implementation, is where you code the business logic of the bean's business methods and also define its life cycle methods. All three are required constituents of a Session Bean. If a bean needs to be accessed over the network, you must provide a remote home interface and a remote interface along with the bean implementation. With EJB 1.1, the only way to access an EJB was remotely, and hence a set of remote interfaces was mandatory.

EJB 2.0 introduced a new concept ...

Get BEA WebLogic Server™ 8.1 Unleashed 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.