Home

 

Creating and configuring the EJB projects

In RAD v7.5, we create and maintain Enterprise JavaBeans and associated Java resources in EJB and utility projects. Within an EJB project, these resources can be treated as a portable, cohesive unit.

With the EJB 3.0 specification, the entities are developed and managed by the Java Persistence API (JPA), as described in Chapter | 2, Persistence using the Java Persistence API (JPA). EJBs can be session beans or message-driven beans.

An EJB module, with underlying JPA entities, typically contains components that work together to perform some business logic. This logic can be self-contained, or access external data and functions as needed. It should be comprised of a facade (session bean) and the business entities. (JPA entities).The facade is usually implemented using one or more session beans and message-driven beans.

In this chapter, we develop a session EJB as a facade for the JPA entities (Customer, Account, Transaction), as shown in Figure | 4-6. The RAD75JPA project must be available in the workspace (you can import the project from c:\7672code\zInterchange\jpa).

ibm.com/redbooks