Written for the enterprise Java/C++ developer, Programming with Enterprise JavaBeans, JTS, and OTS explains the leading standards for transaction management and Enterprise JavaBeans and provides several valuable examples of actual enterprise-level code. The book begins with a tour of the CORBA Object Transaction Service (OTS), the related Java Transaction Service (JTS), and the Java Enterprise JavaBeans (EJB) standards. The authors then provide code for a simple banking application written first in OTS/JTS and then again in EJBs.
A thoroughly technical discussion of transaction processing (TP) follows and, though densely written, provides much technical detail on today's TP standards, including the new CORBA OTS. The authors define basic terms used in transaction processing and OTS transaction architecture and describe the 10 interfaces used for OTS programming (with names such as Current, TransactionFactory, and TransactionObject). They present application programming models (such as "indirect context management with implicit propagation") and interpositioning and failure protocols. Since OTS must work with legacy systems, the authors explain older legacy standards, including X/Open XA.
In a much less theoretical section, the authors show a working sample for an airline reservation system that uses OTS with both Java and C++ code and a Oracle database back end. They then move on to the EJB standard, where they look at different types of EJBs, such as entity beans (which access databases) and session beans (which can store their state). Here they discuss EJB deployment, transaction issues, and security.
The final chapter provides a reworking of the travel reservation system written in EJBs rather than OTS/JTS. The fine examples in this book serve to anchor its more theoretical aspects and will help any enterprise developer tackle OTS/JTS and EJBs for the first time. --Richard Dragan