Mapping enterprise bean JAR files (EJB modules) to relational database (RDB) tables enables the EJB modules to access database resources.
This article assumes that you have created an enterprise application that has an EJB module and that you want this application to access one or more resources.
This article also assumes that you have started an assembly tool such as the Application Server Toolkit (AST) or Rational Web Developer and have configured the assembly tool for work on J2EE modules.
You can map enterprise bean JAR files (EJB modules) to relational database (RDB) tables using the EJB to RDB Mapping wizard of an assembly tool. The wizard creates EJB to RDB mappings for the following situations:
Top-down and meet-in-the-middle mapping support multiple backends, making multiple deployments inside a single EJB module configurable at run time. Bottom-up mapping only supports a single backend. A backend can represent different database vendors, or simply alternative mappings and table qualifiers. If multiple backends exist, then current BackendID needs to be set in the EJB deployment descriptor editor (when working with EJB 2.0 beans). This mapping is used at run time when the JAR is installed on WebSphere Application Server. When deploying EJB 1.1 beans inside an EJB 2.0 project, the EJB 1.1 beans are deployed only once, using the first declared database and type. You specify a Backend ID in an EJB deployment descriptor editor under WebSphere Bindings . The Backend ID determines the persister classes that get loaded at deployment.
ResultFiles for the updated module are shown in the Project Explorer view.
For EJB
modules, you can generate EJB deployment code and deploy the module to a target server in one step. In the Project Explorer view, right-click on the EJB project and click Deploy .
Related tasks
Assembling applications