-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g
In this section, we create an EJB 3 entity bean from the Oracle database table CATALOG that we created earlier. Select the EJB3Model project in the Application Navigator and select File | New. In the New Gallery window, select Categories:Business Tier | EJB and Items | Entities from Tables and click on OK.

In the Persistence Unit window, select New to create a new persistence unit. In the New Persistence Unit window, specify a Persistence Unit name (em). Specify JTA DataSource Name as jdbc/OracleDBConnectionDS, which is the datasource name corresponding to the OracleDBConnection connection. Select the settings for Toplink; Database Platform as Oracle and Server Platform as WebLogic 10 and then click on OK.

The em Persistence Unit gets created. Click on OK in the Persistence Unit window.

Select Type of Connection as Online Database Connection and click on Next. In the Database Connection Details window, select the OracleDBConnection and click...
Change the font size
Change margin width
Change background colour