Session Bean in Detail

When using Session Beans, you might need different types of Beans to accomplish the desired outcome. Sometimes you will need to share Beans with multiple users, and other times you will want a dedicated Bean for each session. As we examine the different capabilities and requirements for implementing the solution, we need different Session Beans to accomplish this.

Stateful Session Beans

Stateful Session Beans are components dedicated to a single client and maintain the state for that client only. For example, consider a shopping cart Session Bean for a Web site. The shopping cart must maintain an individual list for each user. As the shopper in an online store selects items he wants to purchase, the items need to be added ...

Get Borland® JBuilder™ Developer’s Guide 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.