About Session Beans

See Also

A session bean is an enterprise bean that provides a service to a particular user session. A session bean is typically created when the session needs one. Relative to entity beans, session beans are short-lived. A session bean can be of the following types.

Interfaces

Session beans can have local interfaces, remote interfaces, or both. Session beans are more likely to have remote interfaces than entity beans and message-driven beans, since they are usually the entry point for access from remote clients.

The interfaces handle client access to the session bean's methods. Modules that are included in the same enterprise application as the EJB module can access the session bean's modules through its local interfaces. Modules that are not in the same enterprise application must access the bean's methods through its remote interfaces.

For more information about the working with session beans, see Chapter 22 Enterprise Beans in the Java EE Tutorial:

See Also
About Entity Beans
About Message-Driven Beans
Creating an Enterprise Bean
About Business Methods

Legal Notices