JPATransaction
In this lab, you are going to build and use custom JSF components.
Expected duration: 90 minutes
(excluding homework)
Software Needed
Before you begin, you need to install JDK 6 and NetBeans IDE 6.7.1 (or
later version)
as
described here. You also need to download and unzip the
hands-on lab zip file below.
- 4322_jpatransaction.zip (download)
- It contains this document and the lab contents
- Download it and unzip in a directory of your choice
OS platforms you can use
- Windows
- Solaris x86, Solaris Sparc
- Linux
- Mac OS X
Change Log
- July 7th, 2007: Created
- Nov. 1st, 2009: Tested/Updated with NetBeans 6.7.1/6.8beta
Lab Exercises
Exercise 1: Build and run
"07-txScopedPersistenceContext" sample application
(1.1) Create test tables
(1.2)
Open, build, and run "07-txScopedPersistenceContext" sample application
0. Start NetBeans IDE.
1. Open 07-txScopedPersistenceContext
NetBeans project.
- Select File->Open Project (Ctrl+Shift+O). The Open Project dialog box appears.
- Browse down to <LAB_UNZIPPED_DIRECTORY>/jsfshaledialog/samples
directory.
- Windows: If you unzipped the 4131_jsfshaledialog.zip
file under
C:\
directory, the directory to which you want
to browse down should be C:\jsfshaledialog\samples.
- Solaris/Linux: If you unzipped the 4131_jsfshaledialog.zip
file under $HOME
directory, the directory to which you want
to browse down should be $HOME/jsfshaledialog/samples.
- Select 07-txScopedPersistenceContext.
- Click Open Project Folder.
The 07-txScopedPersistenceContext
project node appears under Projects tab
window.
2. Build and run 07-txScopedPersistenceContext project.

- Right-click 07-txScopedPersistenceContext
project and select Run.
Summary
In this exercise, you have built
and run a ready-to-build-and-run "07-txScopedPersistenceContext"
sample
application to get a sense how the application works.
return to
the top
Homework
Exercise (for people
who
are taking Sang Shin's "Java EE Programming online course")
<to be provided>