EJB 2.0 Development with WebSphere Studio Application Developer
by Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss
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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access