O'Reilly logo

Building Scalable and High-Performance Java™ Web Applications Using J2EE™ Technology by Greg Barish

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

EJB Design

Now let's explore the details of each EJB type. We'll first look at how beans are designed and then focus on examples of their implementation. Based on their purpose and capabilities, we'll see that our rough mapping of requirements to beans is in fact reasonable.

Session Beans

Session beans correspond to business tasks primarily related to interactive sessions. When an end user or client wants to execute some action, such as appending to an order, he routes his request to a session bean. It's sometimes helpful to think of a session bean roughly as the device through which a logical connection to an application is established between client and server.

Session EJBs come in two flavors: stateful and stateless. As the name implies, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required