If you are using DB2®, you can use the DB2SQLJCustomize
wizard to generate
and run an SQLJ customization script in your SQLJ-enabled project.
Running
a customization script adds run-time information to the SQLJ serialized
profiles
in your project that is specific to DB2 and
binds the profiles to the database.
After you customize and bind the SQLJ profiles in a project, you can
customize
and bind only the profiles that are associated with an updated SQLJ
file in
the project.
Before you begin
Prerequisites: - You must add SQLJ support to the project.
- Translate the
SQLJ files to Java™ code. The translation process
creates
the SQLJ profiles.
- To only bind the SQLJ profiles, you must
have customized the SQLJ profiles
previously.
About this task
To customize and bind the
SQLJ profiles in a project:
- In the
Package Explorer view of the Java perspective,
right-click the Java project
that contains SQLJ profiles, and then click Customize/Bind
SQLJ
Profiles on the pop-up menu.
- Complete
the DB2SQLJCustomize wizard, and then click Run.
Results
The progress and results of the customize
and bind processes are
shown in the Console view. By default, this view is not shown. To
see the
progress and results in the Console view:
- If the Console view
is open in the workbench, click the Console tab.
- If the Console view is not open in the workbench, click .
You can
set a preference to
show the Console
view automatically.