Setting the environment
We need to download and install JDeveloper 11g Studio edition and WebLogic Server 11g, both of which are components of Oracle Fusion Middleware 11g (http://www.oracle.com/technology/software/products/middleware/index.html). We will also need to create a new WebLogic domain with the Fusion Middleware Configuration Wizard. As for the entity bean persistence, we need to download and install Oracle Database 10g XE (http://www.oracle.com/technology/software/products/database/index.html). Create a user OE with the following SQL commands:
CREATE USER OE IDENTIFIED BY pw; GRANT CREATE SESSION, DBA to OE;
Create a test table CATALOG
in database schema OE
with the following SQL script:
CREATE TABLE Catalog (id INTEGER PRIMARY KEY NOT NULL, journal VARCHAR(100), publisher VARCHAR(100), edition VARCHAR(100), title VARCHAR(100), author VARCHAR(100));
Creating a JDeveloper application
First, we create an EJB 3.0 Application in JDeveloper. Here is how to do it:
1. Select New Application...