Adf_starting series 9_ test for building Web applications with EJB/JPA/JSF via ADF Container

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

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

Step1. New methods are added to the Employee.java findbyname

Step3. Re-generate the method

Step4. Create a new Java Client

Step5. View the New method

2:run the Java Service outside Java EE container

Step1. Run the method

Step2. View definition modifications in a persistence layer

Step3. Run the Java

Thanks and regards

Adf_starting series 9_ test for building Web applications with EJB/JPA/JSF via ADF Container

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.