O'Reilly logo

Java for the Web with Servlets, JSP, and EJB: A Developer’s Guide to J2EE Solutions by Budi Kurniawan

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

Chapter 29. The Session Bean

The Session Bean

This chapter presents the first type of enterprise bean, called the session bean, by first explaining what a session bean is and then discussing two types of session beans: stateful and stateless. After a discussion of the API, you develop the Tassie project, a simple EJB (Enterprise JavaBeans) application that demonstrates the use of session beans and shows how to write a client application that uses the bean.

What Is a Session Bean?

A session bean is an enterprise bean that implements business logic for its clients. For example, a session bean can perform calculations (as you saw in the example in Chapter 28, “Enterprise ...

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