Download this free EJB book chapter and take your skills to a new level

Enterprise Java Beans (EJBs) allow for more reusable code and increase flexibility. Download this free chapter from the book, EJB Design Patterns: Advanced Patterns, Processes, and Idioms, by Floyd Marinescu.

If you’ve been using Enterprise Java Beans (EJBs), you know that they reside between the presentation layer of an application and a business system backend, such as a database.

Experienced Java architects and developers looking to take their skills to the next level should download a free chapter from EJB Design Patterns: Advanced Patterns, Processes, and Idioms by Floyd Marinescu. The book presents 20 advanced EJB design patterns followed up with real-world examples of how they’re used.

John Wiley & Sons, Inc.
Excerpted from EJB Design Patterns: Advanced Patterns, Processes, and Idioms by Floyd Marinescu. Copyright 2002 by The Middleware Company. Reprinted by permission of the publisher John Wiley & Sons, Inc. To order a copy of this work call 1-800-CALL WILEY or visit the Wiley Web site at

Keep those transactions moving
In this chapter, Marinescu drills down on transaction control, persistence, and performance. He discusses some pretty advanced subjects, so it would help to have a background in EJBs and design patterns.

Concepts covered include the following:
  • Version Number—This details a technique used to check for stale data.
  • Java Database Connectivity (JDBC) for Reading—This outlines the pros and cons of using straight JDBC for reading instead of an entity bean.
  • Data Access Command Bean—This explores the advantages of how the persistence logic and persistent store details can be decoupled and encapsulated away from enterprise bean business logic.
  • Dual Persistent Entity Bean—This addresses the question of how an entity bean can be created to support both Container-Managed Persistence (CMP) and Bean-Managed Persistence (BMP) at deployment time.

Beans and patterns
Want us to feature more advanced Java topics? Drop us a list of topics that you’d like to see, or post a comment below.


Editor's Picks

Free Newsletters, In your Inbox