3.1. Introducing Stateless Session Beans

A stateless session bean allows multiple clients to share a single instance. Clients may issue multiple requests to a stateless bean, but the bean does not keep track of any client-specific data.

What sorts of tasks can a stateless session bean perform on a client's behalf? A session bean (stateful or stateless) generally implements a business process. A business process is a series of tasks that conforms to a set of rules for a business enterprise. The session bean's job is to fulfill these steps and to make sure the process conforms to the rules. For example, a session bean may access a database in a read-only mode to supply certain information, such as items in a catalog. Or, the session bean could ...

Get Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications 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.