Adding pbejbclient100.pbd to the library search path
The pbejbclient100.pbx and pbejbclient100.pbd files
are placed in the Shared/PowerBuilder directory
when you install PowerBuilder. When you are building an EJB client
application, you do not need to copy pbejbclient100.pbx to
another location, but you do need to deploy it with the client executable
in a directory in the application’s search path.
The pbejbclient100.pbd file must be in
the client application’s library list. You can use the
Template Application wizard to create the EJB client target and
add the PBD file in the wizard. If you use the Application wizard
or have an existing target, you can add the PBD file to the library
list in the target’s Properties dialog box.
To add pbejbclient100.pbd to
a new target’s search path:
-
In the New dialog box, select the Template
Application Wizard icon and step through the wizard to the Adjust
Application Library Search Path page. -
Click the Browse (…) button and browse to the SharedPowerBuilder directory.
-
Select PB Dynamic Libraries from the Files of
Type drop-down list, select pbejbclient100.pbd,
and click Open. -
Complete the wizard.
To add pbejbclient100.pbd to
an existing target’s search path:
-
Right-click the client target in the System
Tree and select Properties from the pop-up menu. -
Select Browse on the Library List page and browse
to the SharedPowerBuilder directory. -
Select PB Dynamic Libraries from the Files of
Type drop-down list, select pbejbclient100.pbd,
and close the dialog boxes.
After
you add pbejbclient100.pbd, the following objects
display in the System Tree:
| Object | Description |
|---|---|
| EJBConnection | Used to connect to an EJB server and locate an EJB. |
| EJBTransaction | Maps to the javax.transaction.UserTransaction interface. Used to control transactions from the EJB client. |
| JavaVM | Used to create an instance of the Java VM. |