11.3. Migration to EJB: First Steps

As a first step in the migration to the EJB component model, one of the simpler CBOs was re-implemented as an EJB component.

The Currency CBO was chosen because it is a self-contained bean with a simple interface, without dependencies on other parts of EDH, and is based on a single table.

The Currency CBO is defined according to Figure 11.5

Figure 11.5. The Currency Business Object Interface

All the CBOs are defined as interfaces with an underlying implementation class. It was designed this way so that the implementation could be replaced at a later date, without having to change any client code.

The Currency ...

Get J2EE™ Technology in Practice: Building Business Applications With the Java™ 2 Platform, Enterprise Edition 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.