Introduction

In this chapter, we introduce the following topics:

  • Transactions— We describe how transactions are defined in the context of J2EE and how transactions are managed around enterprise beans. We describe the transaction attributes for enterprise beans, and the effect they have on commit, rollback, concurrency, and locking. We then describe ways of starting and ending transactions by enterprise beans, the container, and bean-managed transactions. Finally, we provide guidelines for transaction management.

  • Exception handling— Exceptions are the customary way in Java to indicate to a calling method that an abnormal condition has occurred. When a method encounters an abnormal condition (an exception condition) that it cannot handle itself, ...

Get EJB 2.0 Development with WebSphere Studio Application Developer 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.