Adf_starting Series 6_ Building a Web application using EJB/JPA/JSF through the ADF Datamodel

Source: Internet
Author: User

2013-05-01 Created by Baoxinjian

I. Summary

In this tutorial, you will build a Web application using Oracle's JDeveloper-G version 11.1.2.0.0.

To build the data model, you can use the EJB diagram, EJB 3.0, and Java Persistence API (JPA).

The Web client uses JavaServer Faces (JSF).

Create a master-slave composite structure for the Home page query and editing features of the user interface.

A task flow, search function, is also added as a region to the page.

Building a WEB application Using EJB, JPA, and JavaServer Faces

Part 1:building the Data Model with EJB 3.0 Using the EJB diagrammer

Step 1:create a New application and Projects

Step 2:create The Persistence Model

Step 3:create an EJB Diagram and a Session Bean

Step 4:create a facade Bean to Expose for the Client application

Step 5:create ADF Data Controls from EJB Session beansclose

Part 2:building the View projectclose

Step 1:create a master-detail JavaServer Faces Page

Step 2:bind Data Control components to the Page

Step 3:run and Test the Page

Step 4:add Create and Delete functionalities to the Page

Part 3:adding and exposing a New Method to the Uiclose

Step 1:add a New Method to the Entity and Expose it

Step 2:build a bounded Task Flow with JSF Pages

Step 3:use the Task Flow as aregion in the MAINHR pagestep 4:run the MAINHR Page

Part 4:testing the facade Inside and Outside the Java EE Container

Step 1:add a New Method to the Entity and Expose it

Step 2:run the Java Service outside Java EE container

Ii. Case 1-create A New application and Projects

1. Create a new ADF application

2. View the app you created

Iii. case 2-create The Persistence Model

1. Create Ejb,entities from tables

2.1 Creating a table entity-Version

2.3 Creating table Entities-type of Connection

Step3. Create DATABASE Connection

Step4. Define PackageName

Step5. Relationship

Step6. To view the two beans created

Iv. Case 3-create an EJB Diagram and a Session Bean

Step1. Creating an EJB Diagram

Step2. Creating an EJB Diagram

Step3. Persistent Layer binding model

Step4. Create the following


V. case 4-create a facade Bean to Expose for the Client application

Step1. Create Session Bean

Step2. Create a production method

Step3. Defining attribute Parameters

Step4. To view the components that are created

Vi. case 5-create ADF Data Controls from EJB Session beansclose

Step1. Create a data Control

Step2. Defining methods

Step3. View the data Control you created

Thanks and regards

Adf_starting Series 6_ Building a Web application using EJB/JPA/JSF through the ADF Datamodel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.