Characteristics of Session Beans

Session beans typically have the following characteristics:

  • Represent a conversation between client and server.

  • Execute on behalf of single client. They cannot be shared by more than one client at the same time. Also, they cannot be called by the same client using multiple threads.

  • Can be both transaction-aware and use security.

  • Do not directly represent data in a database. However, they can access and update data on behalf of the client.

  • Are relatively short-lived. They are removed when the client removes them, or when the EJB container shuts down or crashes.

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.