Chapter 6. Transactions and security

This chapter covers

  • The basics of transactions in EJBs
  • When to use transactions
  • Container-managed versus bean-managed transactions
  • The basics of authentication and authorization in EJBs
  • Using groups and roles in security

Transactions and security are the cornerstones upon which an Enterprise application is built. In terms of development, transactions and security are probably the hardest to implement correctly and nearly impossible to retrofit into an application once it’s built. Both are system-level concerns that crosscut through an application and are intrinsically assumed by the business logic. EJB tackles both of these concerns and provides a framework for building robust applications while enabling ...

Get EJB 3 in Action, Second Edition now with O’Reilly online learning.

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