Java EE 6 Hands-on Lab

Please download to get full document.

View again

of 25
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Information Report
Category:

Documents

Published:

Views: 79 | Pages: 25

Extension: PDF | Download: 0

Share
Description
OTN Developer Day Enterprise Java Java EE 6 Hands-on Lab OTN Developer Day Oracle Technology Network. It‘s code for sharing expertise. Come to the best place to collaborate with other IT professionals. Oracle Technology Network is the world’s largest community of developers, administrators, and architects using industrystandard technologies with Oracle products. Sign up for a free membership and you‘ll have access to: Discussion forums and hands-on labs Free downloadable software and sample c
Tags
Transcript
  OTN Developer DayEnterprise Java Java EE 6 Hands-on LabOTN Developer Day    Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other namesmay be trademarks of their respective owners. 10039688 Oracle Technology Network.It‘s code for sharing expertise. Come to the best place to collaborate with otherIT professionals. Oracle Technology Network is the world’s largest communityof developers, administrators, and architects using industry-standard technologies with Oracle products. Sign up for a freemembership and you‘ll have access to:    Discussion forums and hands-on labs    Free downloadable software and sample code    Product documentation    Member-contributed contentTake advantage of our global network of knowledge. JOIN TODAY Go to:oracle.com/technetwork            Java EE 6 Hands-on Lab: OTN Developer Day Table of Contents 1.0 Introduction..........................................................................................................................................31.1 Software Downloads.......................................................................................................................32.0 Problem Statement...............................................................................................................................33.0 Build the template Web application.....................................................................................................44.0 Generate JPA Entities...........................................................................................................................54.5 Understand and Customize JPA entities (OPTIONAL)..................................................................75.0 Create EJB for querying the database................................................................................................106.0 Create a Servlet for testing the EJB...................................................................................................117.0 Enable CDI and make the EJB EL-injectable....................................................................................128.0 Display the values in a JSF2/Facelets-based view.............................................................................149.0 Expose JPA entities as a RESTful resource using JAX-RS...............................................................1810.0 Conclusion.......................................................................................................................................2211.0 Troubleshooting................................................................................................................................2312.0 Acknowledgments............................................................................................................................2413.0 Completed Solutions........................................................................................................................24 2  Java EE 6 Hands-on Lab: OTN Developer Day 1.0 Introduction   The Java EE 6 platform allows you to write enterprise Java applications using much lessercode from its earlier versions. It breaks the “one size fits all” approach with Profiles andimproves on the Java EE 5 developer productivity features tremendously. Severalspecifications like CDI, JSF 2, JAX-RS, JPA 2, and Servlets 3 make the platform morepowerful by adding new functionality and yet simple to use. NetBeans, Eclipse, and IntelliJprovide extensive tooling for Java EE 6.This hands-on lab will build a typical 3-tier end-to-end Web application using Java EE 6technologies including JPA2, JSF2, CDI, EJB 3.1, JAX-RS 1.1, and Servlets 3. Thedevelopment and deployment of the application will be performed using NetBeans andGlassFish 3.1. 1.1 Software Downloads If this lab is performed as part of the Oracle Technology Network Developer Day then all thesoftware is pre-installed on a Virtual Box instance. Otherwise you'll need to download andinstall the following software: ã JDK 6 or 7 fromhttp://www.oracle.com/technetwork/java/javase/downloads/index.html. ã NetBeans 7.0+ “All” or “JavaEE” version fromhttp://netbeans.org/downloads/index.html. This version includes a pre-configuredGlassFish 3.1. 2.0 Problem Statement This hands-on lab builds a typical 3-tier Web application that displays customer informationfrom a database table in a Servlet, a Web page, and as RESTful Web service using CLI.The main steps are:1.Generate JPA Entities from the database table2.Refactor generated entities for a more intuitive O/R mapping 3
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks
SAVE OUR EARTH

We need your sign to support Project to invent "SMART AND CONTROLLABLE REFLECTIVE BALLOONS" to cover the Sun and Save Our Earth.

More details...

Sign Now!

We are very appreciated for your Prompt Action!

x