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 ...

Get Java for the Web with Servlets, JSP, and EJB: A Developer’s Guide to J2EE Solutions now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.