Java Platform, Enterprise Edition (Java EE) 8 The Java EE Tutorial

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

The following topics are addressed here:

- Overview of the EJB Examples

- The cart Example

- A Singleton Session Bean Example: counter

- A Web Service Example: helloservice

- Using the Timer Service

- Handling Exceptions

Copyright © 2017, Oracle and/or its affiliates. All rights reserved.