5. Running the Enterprise Bean Examples

This chapter describes the EJB examples. Session beans provide a simple but powerful way to encapsulate business logic within an application. They can be accessed from remote Java clients, web service clients, and components running in the same server.

In Chapter 4, “Getting Started with Enterprise Beans,” you built a stateless session bean named ConverterBean. This chapter examines the source code of four more session beans:

Image CartBean: a stateful session bean that is accessed by a remote client

Image CounterBean ...

Get The Java EE 7 Tutorial, Volume 2, Fifth Edition 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.