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