Previous | Contents | Index |
There is a PowerBuilder Version 5.0 sample application provided as a self-extracting archive file named i16pbkit.exe. This sample is a simplified version of the original Avertz for Windows; it illustrates the execution of an ACMS task with no exchange I/O.
The archive provides a PowerBuilder library, pbaverz.pbl, that contains the PowerBuilder objects for the Avertz client application, and a dynamic-link library, pbpointr.dll that is required for memory management when building PowerBuilder applications that use TP Desktop Connector gateway for ACMS services.
If you install the software from the TPware Product Suite CD (see Section 5.1), transfer the archive file from the Windows NT system to your desktop system. For example:
C:\ACMSDI> mkdir pbsmp C:\ACMSDI> cd pbsmp C:\ACMSDI\PBSMP> copy e:\intel16\i16pbkit.exe |
If you install the software from the Software Products Library CD (see Section 3.2.2.2), change directory to the location containing the client files.
To install the software, execute the archive file and delete it to recover disk space. For example:
C:\ACMSDI\PBSMP> i16pbkit.exe C:\ACMSDI\PBSMP> del i16pbkit.exe |
Table A-7 lists the files that are added to your system. For
instructions on using the PowerBuilder sample, read the three .doc files shown in Table A-7.
6.2.9 Installing the Visual Basic Sample Applications
There are two Visual Basic sample applications provided in the form of self-extracting archive files. The file \intel16\Samples\i16vbavz.exe contains the files for the same sample that was provided for ACMS Desktop V2.0; it is a blocking, no exchange I/O client.
The file i16vbfnb.exe (in the same folder) contains the files of a tutorial sample showing how to program to the new TP Desktop Connector gateway for ACMS forced non-blocking interface. This interface allows languages like Visual Basic to issue non-blocking calls to TP Desktop Connector gateway for ACMS and provides support for programming ACMS exchange I/O interface calls.
If you install the software from the TPware Product Suite CD (see Section 5.1), transfer the archive file from the Windows NT system to your desktop system. For example:
C:\ACMSDI> mkdir vbavertz C:\ACMSDI> cd vbavertz C:\ACMSDI\VBAVERTZ> copy e:\Samples\i16vbavz.exe |
If you install the software from the Software Products Library CD (see Section 3.2.2.2), change directory to the location containing the client files.
To install the sample software, execute the archive file and delete it to recover disk space. For example:
C:\ACMSDI\VBAVERTZ> i16vbavz.exe C:\ACMSDI\VBAVERTZ> del i16vbavz.exe |
Table A-8 lists the files added to your system from the Avertz
archive; Table A-9 lists the files from the Forced Nonblocking
tutorial.
6.2.9.1 Verifying the Visual Basic Avertz Sample Installation
To verify the success of the Visual Basic sample installation, bring up the Visual Basic development environment under Microsoft Windows:
To verify the successful installation of the Forced Nonblocking tutorial (from file i16vbfnb.exe), bring up the Visual Basic development environment in Microsoft Windows:
ACMSDI.BAS and FORMS.BAS were installed on your system as described in Section 6.2. |
The client services files for OpenVMS are provided as a compressed saveset that you can copy from the TPware CD mounted on your desktop platform. After copying the client services software, you decompress the file and restore the saveset.
Follow these instructions to install the client services for OpenVMS:
$ create/dir [.acmsdi] |
$ set def [.acmsdi] $ copy cd:[vmsvax]vms_client.exe [] $ run vms_client.exe . . . [Return] accept the default output filename . . . $ backup vms_client.sav/save *.*/log <> |
$ set def [.acmsdi] $ copy cd:[vmsalpha]vms_client.exe [] $ run vms_client.exe . . . [Return] accept the default output filename . . . $ backup vms_client.sav/save *.*/log <> |
$ library/delete = net_decnet acmsdi$client_objlib.olb |
$ library/insert acmsdi$client_objlib.olb net_netware.obj |
$ library/insert acmsdi$client_objlib.olb net_tcpip.obj |
After these steps, you are ready to build TP Desktop Connector applications
that use NetWare or TCP/IP as a transport. Table A-1 shows the
files that are added to your desktop system during the installation of
the TP Desktop Connector client services for OpenVMS.
6.3.1 Installing the Motif Sample Client for OpenVMS
To install the Motif sample files on the OpenVMS desktop system, perform the following steps:
$ create/dir [.motif_avertz] $ set def [.motif_avertz] |
$ copy cd:[vmsvax.samples]vms_avertz.exe [] <> |
$ copy cd:[vmsalpha.samples]vms_avertz.exe [] <> |
$ run vms_avertz.exe . . . [Return] accept the default output filename . . . $ backup/restore vms_avertz.sav/save *.*/log |
$ copy m_avertz.dat sys$login:m_avertz.dat |
Table A-2 lists the files that are added to your desktop system.
6.3.2 Verifying the Motif Sample Installation on OpenVMS
Compile, link, and run the source code for the sample client program to verify your capability to build applications.
To build the sample application, follow these steps:
$ MMS |
On OpenVMS Alpha systems, the makefile expects the logical ACMSDI$VMS_ALPHA to point to the directory that contains the TP Desktop Connector client library. In addition, on OpenVMS Alpha systems, the first time that the makefile tries to create the DECwindows library, the makefile fails. When this happens, rerun MMS to continue the build.<> |
> run m_avertz/nodebug |
The m_avertz application displays the menu bar of the AVERTZ Car Reservation System. If you want the sample desktop client program to communicate with the ACMS application, follow the procedures in Section 6.3.3 to set up the sample application on the ACMS system. After you set up the ACMS system, use the Session menu to sign in to the ACMS system. After you sign in, you can use the Rental menu to run the reserve task of the AVERTZ application.
The installation procedure is now complete and verified.
6.3.3 Setting Up the Avertz ACMS Sample Application on an OpenVMS System
The command procedure VR_DA_RUNTIME_SETUP.COM sets up the sample application. You need SYSPRV privilege to run the procedure. See the file ACMSDI$VR_APPLICATION_INFO.TXT in the ACMSDI$EXAMPLES_AVERTZ directory for more information on setting up the sample.
To prepare the AVERTZ sample application on a Compaq OpenVMS system, do the following:
$ @ACMSDI$EXAMPLES_AVERTZ:VR_DA_RUNTIME_SETUP . . . $ |
$ ACMS/START SYSTEM $ ACMS/START APPLICATION VR_DA_APPL |
The following sections provide additional information about using the
Avertz sample application on the ACMS OpenVMS system.
6.3.3.1 Using the Avertz ACMS Sample with Rdb Version 6.0 with Multi-Version
When you execute the VR_DA_RUNTIME_SETUP.COM file to set up the sample application, this command file invokes two option files, VR_READ_SERVER.OPT and VR_UPDATE_SERVER.OPT, which reference the SYS$LIBRARY:SQL$USER library. On a system with Rdb Version 6.0 with multi-version installed, the SYS$LIBRARY:SQL$USER file is not available. Instead, the version number is appended to the file name, for instance, SYS$LIBRARY:SQL$USER60.
To work around this naming mismatch problem, you can define the logical name SQL$USER to reference the appropriate library file. For example:
$ DEFINE SQL$USER SYS$LIBRARY:SQL$USER60 |
Modify the linker options files:
Replace the line
SYS$LIBRARY:SQL$USERnn.OLB/LIBRARY |
with the following:
SYS$USER/LIBRARY |
The VR_FORM.IFDL file of the Avertz ACMS sample application can not be compiled under DECforms Version 1.4. This is because the DECforms Version 1.4 IFDL parser no longer recognizes the colon symbol (:), which the VR_FORM.IFDL file uses.
To get around this problem, put double quotation marks around the text containing the ":" symbol in the VR_FORM.IFDL file.
For example, change the following:
Copy AVERTZ_CDD_FIELD:CUSTOMER_ID from Dictionary End Copy |
To look like:
Copy "AVERTZ_CDD_FIELD:CUSTOMER_ID" from Dictionary End Copy |
The VR_DA_RUNTIME_SETUP.COM command file assigns quotas for the AVERTZ_EXC, AVERTZ_UPD, and AVERTZ_READ user names that are adequate for running the VR_DA_APPL sample application. If your system already has these user names defined, the quotas for these user names might be inadequate for VR_DA_APPL. If you are using the AVERTZ sample application, delete AVERTZ_EXC, AVERTZ_UPD, and AVERTZ_READ user names before running VR_DA_RUNTIME_SETUP.COM to ensure that you get appropriate quotas for these user names.
To ensure the success of the operations in the VR_DA_RUNTIME_SETUP.COM
command procedure, run it from the system account.
6.3.3.4 Access Control List for the Avertz ACMS Sample
The VR_DA_RUNTIME_SETUP.COM procedure adds the AVERTZ application name VR_DA_APPL to the ACMS database. The command line to do so includes the ACL qualifier and assigns the ID as /ID=SYSTEM. This might fail on your system.
To ensure that the VR_DA_RUNTIME_SETUP.COM procedure works, change the
ID=SYSTEM to ID=[UIC], where UIC is that of the account SYSTEM; for
example, ID=[1,4].
6.3.3.5 Rebuilding the Avertz ACMS Sample
Executables are provided for the sample. You do not need to rebuild the sample to run it. However, a DEC/MMS description file is provided for rebuilding the sample to incorporate any changes you make to the sample.
To modify and rebuild the sample, follow these steps:
$ @ACMSDI$EXAMPLES:VR_DA_BLD_MMS |
To perform a specific activity, specify one of the parameters in Table 6-3.
Keyword | Activity |
---|---|
BLD | Run MMS to build VR_DA_APPL |
CDD | Set up the CDD dictionary and directories for VR_DA_APPL |
DB | Create the VEHICLE_RENTALS database |
The TP Desktop Connector client services and sample application files are distributed on the Software Products Library CD and on the TPware Product Suite CD. If you are installing the software from the TPware Product Suite CD (see Section 6.1), you have archive (tar(1)) files that you install on a Tru64 UNIX desktop system. Perform the following steps.
> mkdir acmsdi > cd acmsdi |
> cp e:/dunix/du_client.tar . |
If you install the client files from the Software Products Library CD (see Section 3.2.2.3), change directory to the location of the tar files that you placed on the Tru64 UNIX system.
The du_client.tar archive file contains the client files. Perform the following steps.
acmsdi> tar xvf du_client.tar . . . |
> su # ar d libacmsdi.a net_tcpip.o # ar r libacmsdi.a net_decnet.o # ar t libacmsdi.a . . . # ar qs libacmsdi.a |
# cp libacmsdi.a /usr/lib/libacmsdi.a . . . |
# ar qs /usr/lib/libacmsdi.a |
# [Ctrl/D] > |
See Section 6.4.1 for instructions on installing sample files.
Previous | Next | Contents | Index |