|
SYS-CON.TV Webcasts
Comments
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
Top Links You Must Click On
Product Reviews Enterprise JavaBeans
Enterprise JavaBeans
By: Ajit Sagar
May. 1, 2002 12:00 AM
Although I've been following EJB 2.0 very closely, it was only recently that I walked into a project that was the perfect venue for its new features, such as the much enhanced container-managed persistence and local interfaces. And Enterprise JavaBeans, written by Richard Monson-Haefel, fit the bill as a reference and learning guide. This is a "must-have" book if you want an introduction to EJBs, are migrating from EJB 1.1 to 2.0, or want to build a new application using EJBs. The author provides a brief introduction to distributed objects and component models in the first chapter; however, if you're unfamiliar with these concepts or with database design, this is not the right book for you. Enterprise JavaBeans talks in detail about the obvious - Enterprise JavaBeans - and stays focused on the subject. I was very impressed with the organization of the book, which made it a treat to read. One of its main strengths is that it stays focused on specific topics and cleanly separates the 1.1 and 2.0 versions of the EJB specification. For example, if you're only concerned with designing a new application using EJB 2.0, the information isn't cluttered with recurring references to the EJB 1.1 CMP model, which is discussed in a separate chapter. Chapter 1 introduces distributed computing. Chapter 2 provides an excellent overview of EJBs, including coverage of the standard classes and interfaces, the types of beans, and the deployment descriptor for deploying beans. The author has picked a generic application to illustrate his examples - a reservation for a cruise. If this chapter had contained an overall diagram illustrating the entire hierarchy, including the objects developed throughout the book, it would have been a perfect chapter on EJB architecture. Chapter 3 deals with the basic services provided by the J2EE component transaction monitors or EJB containers. It provides a good discussion on such topics as the EJB life cycle, object persistence, and the bean-container contract. Chapter 4 walks you through developing and deploying some basic EJBs and covers application development concepts from object design to basic database table design. Chapter 5 covers the design of a basic client to access the beans developed in Chapter 4. The discussion on local versus remote interfaces is very helpful. Chapters 5-8 were, for me, the most useful chapters in the book. Monson-Haefel walks you through the nuts and bolts of designing entity beans with the new EJB 2.0 persistence model. Chapters 6-7 develop sample entity beans in light of the new persistence model with very lucid examples. The organization of the text is excellent. Monson-Haefel begins each example with the abstract programming model, followed by the abstract persistence schema, then the design of the bean interfaces and classes, and finally the deployment of the bean. Each discussion is autonomous and very clear. Chapter 7 offers clear guidance on database relationships as they relate to EJB 2.0 CMP. Chapter 8 is a good reference for using EJB-QL. Chapter 9 deals with EJB 1.1 CMP. Chapters 10-11 discuss the details of bean-managed persistence and the EJB container. Chapter 11 has ample coverage of primary keys, the entity context, and the life cycle of entity beans. Chapters 12-13 cover the other two types of EJBs (session and message-driven beans). The sample application is developed further in these chapters by TravelAgent Bean, Reservation Process Bean, and associated workflows. Transaction design for EJBs is covered in Chapter 14. Chapter 15 provides some excellent design strategies for EJB design, such as using hash codes to generate primary keys and dependent value objects to pass objects to and from entity beans. Chapter 16 is a reference chapter on the deployment descriptor for EJBs. This is followed in Chapter 17 by an overview of how EJBs fit into the big J2EE picture. The appendices provide concise references to the EJB APIs and the state and sequence diagrams for the different types of EJBs. This is one of the best sources of information on EJBs that I've found. It would have been helpful if there were some diagrams of the overall picture, but all in all, this is a very well-organized book about using Enterprise JavaBeans to develop applications. SIDE BARS
Enterprise JavaBeans Table of Contents Preface
1. Introduction
2. Architectural Overview
3. Resource Management and the Primary Services
4. Developing Your First Enterprise Beans
5. The Client View
6. EJB 2.0 CMP: Basic Persistence
7. EJB 2.0 CMP: Entity Relationships
8. EJB 2.0 CMP: EJB QL
9. EJB 1.1 CMP
10. Bean-Managed Persistence
11. The Entity-Container Contract
12. Session Beans
13. Message-Driven Beans
14. Transactions
15. Design Strategies
16. XML Deployment Descriptors
17. Java 2, Enterprise Edition A. The Enterprise JavaBeans API B. State and Sequence Diagrams C. EJB Vendors Index Reader Feedback: Page 1 of 1
Enterprise Open Source Magazine Latest Stories . . .
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||