CHAPTER 2

image

EJB Session Beans

This chapter will discuss EJB session beans, the core business service objects used by EJB client applications. You’ll gain an understanding of the simplified EJB session bean model with insights into the following topics:

  • Types of session beans—stateful, stateless, and singleton—and when to use each one
  • The bean class, business interfaces, and business methods
  • Asynchronous methods
  • Callback methods
  • Interceptors
  • Exception handling
  • Client view
  • Dependency injection with annotations related to session beans
  • Timer service

Introduction to Session Beans

Session beans are Java components that run either in stand-alone EJB ...

Get Beginning EJB 3: Java EE 7 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.