Lesson 1.1: Import the required resources
Before you begin, you need to import the required resources for this tutorial: a sample Derby database and a set of Web pages.
The main purpose of this tutorial is to teach you how to add Java™ Persistence API (JPA) support to a project and to how to use the JPA tools create and configure JPA entity beans and JPA manager beans. To complete this tutorial, you will need to access a sample Derby database. To test your work, you will run a sample Web application that uses JPA data bound to Java Server Faces (JSF) JSP files to access and manipulate data in the database.
The tutorial does not go into the detail of designing the look and feel of a Web site or working with JSF. Accordingly, the Web site design has been prepared for you already.
The sample database and the Web pages needed to complete this tutorial are included in a ZIP file. This lesson will take you through the steps of importing the ZIP file so that you can use the database and Web pages. You will also set the target server for the dynamic Web project.
To import the content of the ZIP file:
Import the sample project file
Import the project. Switch to the Web perspective (
Window | Open Perspective | Web).
Set the target server
Setting the target server for the Web project enables you to test the resources that you will be creating in this tutorial.
To set the target server:
- In the Enterprise Explorer view of the Web perspective, right-click
JPATutorial and click
Properties.
- In the properties list, click
Server.
- In the Default server list, select the WebSphere® Application Server, version 7.0 that you want to use as the default. Click
Apply.
- In the properties list, click
Targeted Runtimes. In the Runtimes list, ensure that the runtime selected is WAS v7.0. Click OK.
Lesson checkpoint
You have now imported the JPATutorial dynamic Web project and set the target server.
You are now ready to continue with the other lessons in this tutorial.