Document revision date: 15 July 2002
[Compaq] [Go to the documentation home page] [How to order documentation] [Help on this site] [How to contact us]
[OpenVMS documentation]

COM, Registry, and Events for OpenVMS Developer's Guide


Previous Contents Index

3.2.1 How COM for OpenVMS Uses the OpenVMS Registry

COM for OpenVMS requires the OpenVMS Registry. Like its registry database counterpart on Windows NT systems, the OpenVMS Registry stores information about COM applications---specifically those COM applications running on OpenVMS. These COM for OpenVMS applications use the OpenVMS Registry to store CLSIDs (class IDs), startup information, security settings, and so on in the OpenVMS Registry database. COM for OpenVMS uses the Win32 APIs implemented on OpenVMS to read and write this information to the OpenVMS Registry.

COM for OpenVMS requires access to the OpenVMS Registry database. If COM for OpenVMS cannot access the OpenVMS Registry, COM for OpenVMS will not start. For more information about the OpenVMS Registry, see Chapter 12.

3.3 Using COM for OpenVMS

You can use COM for OpenVMS to do the following:

The following sections discuss new application development and encapsulation in more detail.

An example of a COM application to encapsulate an existing OpenVMS application is included with this release. The example can be found in DCOM$EXAMPLES:[WRAPPER]. A README file describes the example and how to build it.

3.3.1 Developing New Applications

Your organization might use COM for OpenVMS to develop new applications under the following circumstances:

The advantages of using COM for OpenVMS include:

See Chapter 7 and Appendix C for examples of developing COM for OpenVMS applications.

3.3.2 Encapsulating Existing Applications

If you have monolithic applications written in procedural languages (such as Fortran and COBOL) with character-cell interfaces, you can put a COM "wrapper" or jacket around these applications to allow them either to run on new platforms or to remain on OpenVMS and run in a client/server environment.

The risk associated with completely reengineering some older applications is high. Many applications are large, complex, poorly documented, and not well understood by their current maintainers. Encapsulating a legacy application can be less risky than reengineering and can be the first step in a rewrite. Over time, pieces of the legacy application can be rewritten, while the older version of the application remains stable and available. Encapsulation also allows developers to reuse code, saving time and resources.

Disadvantages to encapsulation include more complex maintenance efforts and the inability to make changes to the underlying code. If the legacy application was unstable or hard to maintain, the encapsulated application will not be any better, and might be made worse because of the wrapper.

There are several layers of a traditional procedural application that you can encapsulate: the user interface (UI), the database, and the data manipulation routines.

Encapsulating an OpenVMS application using COM for OpenVMS means that you write a COM for OpenVMS server that talks to the application being encapsulated. The COM for OpenVMS server passes arguments to the application in the order and format that the application expects. The COM for OpenVMS server then intercepts the output from the application and directs it to the display device, user interface, or other routines.


Chapter 4
Installing the COM for OpenVMS Kit

This chapter provides a list of the contents of the COM for OpenVMS kit, a list of prerequisite software, and preinstallation requirements. It also describes how to install COM for OpenVMS and includes postinstallation instructions.

4.1 Contents of the COM Version 1.2 for OpenVMS Kit

COM Version 1.2 for OpenVMS contains the following:

4.2 Prerequisites

The following software is required:

4.2.1 DECwindows Motif Required to Run COM for OpenVMS

You must install DECwindows Motif for OpenVMS on any system running COM for OpenVMS. If you already have DECwindows Motif installed on your system, you do not need to do anything else. If you do not have DECwindows Motif installed on your system, you can find the installation kit for DECwindows Motif on the OpenVMS CD-ROM in the [KITS.DWMOTIFxxx_KIT] directory, where xxx is a DECwindows Motif version, such as 125 or 126.

Note

If you are installing DECwindows Motif to meet the COM for OpenVMS requirements only, you do not need the DW-MOTIF license.

4.3 Supported COM for OpenVMS Installations

The following sections describe COM Version 1.2 for OpenVMS installation and upgrade options.

Note

If you want to run COM Version 1.2 for OpenVMS in unauthenticated mode, see Section E.1.
If you want to do this Read this section
Install COM for OpenVMS on an OpenVMS standalone system for the first time. Section 4.4
Install COM for OpenVMS on an OpenVMS Cluster system for the first time. Section 4.6
Upgrade from earlier versions of COM for OpenVMS on an OpenVMS standalone system. Section 4.5
Upgrade from earlier versions of COM for OpenVMS on an OpenVMS Cluster system. Section 4.7

4.4 Installing COM for OpenVMS on an OpenVMS Standalone System

Use the following procedure:

  1. Install OpenVMS Version 7.2-1 or higher. For this procedure, see the OpenVMS Alpha Version 7.x Upgrade and Installation Manual.
  2. Install TCP/IP Services. For this procedure, see the Compaq TCP/IP Services for OpenVMS Installation and Configuration manual or your TCP/IP supplier's documentation.
  3. Boot the installed system from the system disk.
  4. Install COM Version 1.2 for OpenVMS. For this procedure, see Section 4.9.
  5. Install Compaq Advanced Server for OpenVMS. For this procedure, see the Compaq Advanced Server for OpenVMS Server Installation and Configuration Guide.
  6. Configure TCP/IP Services (set up for startup and reboot); then start TCP/IP. You must configure the PWIP driver for Compaq Advanced Server for OpenVMS to use TCP/IP Services. For information about configuring TCP/IP, see the Compaq TCP/IP Services for OpenVMS Installation and Configuration manual or your TCP/IP supplier's documentation.
  7. Configure the OpenVMS Registry as follows:
  8. Start OpenVMS Registry by running the REG$STARTUP.COM file.
  9. If you want to run DCE, start DCE now.

    Note

    You do not need DCE to run COM for OpenVMS, but if your environment uses DCE, Compaq recommends that you start DCE now.

    For this procedure, see the Compaq DCE Installation and Configuration Guide.
    For more information about OpenVMS external authentication, see Section 5.1.
  10. Configure Compaq Advanced Server for OpenVMS. You need to reboot to finish Compaq Advanced Server for OpenVMS configuration. You must reboot 0 to n times, depending on your system configuration. For this procedure, see the Compaq Advanced Server for OpenVMS Server Installation and Configuration Guide.
  11. Start Compaq Advanced Server for OpenVMS (set up for startup on reboot). For this procedure, see the Compaq Advanced Server for OpenVMS Server Installation and Configuration Guide.
  12. Start the ACME server. Use the following command:


      $ @SYS$STARTUP:NTA$STARTUP_NT_ACME 
    

  13. Start RPC. Use the following command:


      $ @SYS$STARTUP:DCE$RPC_STARTUP.COM 
    

  14. Configure COM for OpenVMS. For this procedure, see Section 4.10 and Section 6.2.
  15. Edit the SYLOGICALS.COM file and add the following line:


      $ DEFINE DCOM$TO_BE_STARTED TRUE 
    

  16. Start COM for OpenVMS. For this procedure, see Section 4.11.

4.5 Upgrading COM for OpenVMS on an OpenVMS Standalone System

Note

Before you start, Compaq recommends that you disable any Compaq Advanced Server for OpenVMS, OpenVMS Registry, and layered product automatic startups so that these products do not start until you have upgraded COM for OpenVMS and its associated components.

Use the following procedure:

  1. Edit the SYLOGICALS.COM file to stop the following products from starting:
    • OpenVMS Registry (remove the line DEFINE REG$TO_BE_STARTED TRUE or DEFINE/SYSTEM REG$TO_BE_STARTED TRUE )
    • COM for OpenVMS (comment the line DEFINE DCOM$TO_BE_STARTED TRUE )
  2. Edit the SYS$STARTUP:SYSTARTUP_VMS.COM file to stop the following products from starting:
    • Compaq Advanced Server for OpenVMS (comment the line @SYS$STARTUP:PWRK$STARTUP.COM ).

If COM for OpenVMS is currently running, shut down COM for OpenVMS first, Compaq Advanced Server for OpenVMS (if running), and then the OpenVMS Registry.

Use the following procedure:

  1. Upgrade to OpenVMS Version 7.2-1 or higher. For this procedure, see the OpenVMS Alpha Version 7.x Upgrade and Installation Manual.
  2. If you need to upgrade TCP/IP, upgrade TCP/IP now. For this procedure, see the Compaq TCP/IP Services for OpenVMS Installation and Configuration manual or your TCP/IP supplier's documentation.
  3. Boot the upgraded system from the system disk.
  4. Upgrade COM for OpenVMS. For this procedure, see Section 4.9.
  5. Install or upgrade Compaq Advanced Server for OpenVMS. You must reboot 0 to n times, depending on your system configuration. For this procedure, see the Compaq Advanced Server for OpenVMS Server Installation and Configuration Guide.
  6. Start TCP/IP unless you have enabled TCP/IP to start on a reboot. For this procedure, see the Compaq TCP/IP Services for OpenVMS Installation and Configuration manual or your TCP/IP supplier's documentation.
  7. Start the OpenVMS Registry unless you have enabled the OpenVMS Registry to start on a reboot. For this procedure, see Section 13.2.
  8. If you want to run DCE, start DCE now.

    Note

    You do not need DCE to run COM for OpenVMS, but if your environment uses DCE, Compaq recommends that you start DCE now.

    For this procedure, see the Compaq DCE Installation and Configuration Guide.
    For more information about OpenVMS external authentication, see Section 5.1.
  9. Configure Compaq Advanced Server for OpenVMS. You must reboot to finish Compaq Advanced Server for OpenVMS configuration. You need to reboot 0 to n times, depending on your system configuration. For this procedure, see the Compaq Advanced Server for OpenVMS Server Installation and Configuration Guide.
  10. Start Compaq Advanced Server for OpenVMS (set up for startup on reboot). For this procedure, see the Compaq Advanced Server for OpenVMS Server Installation and Configuration Guide.
  11. Start the ACME server. Use the following command:


      $ @SYS$STARTUP:NTA$STARTUP_NT_ACME 
    

  12. Start RPC. Use the following command:


      $ @SYS$STARTUP:DCE$RPC_STARTUP.COM 
    

  13. See Appendix D for detailed information about upgrading from COM Version 1.0 for OpenVMS to COM Version 1.2 for OpenVMS.
  14. Configure COM for OpenVMS. For this procedure, see Section 4.10 and Section 6.2.
  15. Edit the SYLOGICALS.COM file and add the following line:


      $ DEFINE DCOM$TO_BE_STARTED TRUE 
    

  16. Start COM for OpenVMS. For this procedure, see Section 4.11.

4.6 Installing COM for OpenVMS on an OpenVMS Cluster

Note

This cluster installation procedure assumes you are installing COM for OpenVMS on a single system disk.

Use the following procedure:

  1. Install OpenVMS Version 7.2-1 or higher on all system disks as required. For this procedure, see the OpenVMS Alpha Version 7.x Upgrade and Installation Manual.
  2. Install TCP/IP. For this procedure, see the Compaq TCP/IP Services for OpenVMS Installation and Configuration manual or your TCP/IP supplier's documentation.
  3. Boot the installed system from the system disk.
  4. Install COM Version 1.2 for OpenVMS. For this procedure, see Section 4.9.
  5. Install Compaq Advanced Server for OpenVMS on this node in the cluster. For this procedure, see the Compaq Advanced Server for OpenVMS Server Installation and Configuration Guide.

    Note

    You must install Compaq Advanced Server for OpenVMS on at least one Alpha node in the cluster. On the other nodes, you can either install Compaq Advanced Server for OpenVMS or select External Authentication images (only) .
  6. Configure TCP/IP (set up for startup on reboot on each node) and start TCP/IP. You must configure the PWIP driver for Compaq Advanced Server for OpenVMS to use TCP/IP. For information about configuring TCP/IP, see the Compaq TCP/IP Services for OpenVMS Installation and Configuration manual or your TCP/IP supplier's documentation.
  7. Configure the OpenVMS Registry:
  8. Configure DCE.

    Note

    You do not need DCE to run COM for OpenVMS, but if your environment uses DCE, Compaq recommends that you start DCE now.

    For this procedure, see the Compaq DCE Installation and Configuration Guide.
  9. If you want to run DCE, start DCE now. You must configure DCE on each node on which you want to run DCE.
    For more information about OpenVMS external authentication, see Section 5.1.
  10. Configure and start Compaq Advanced Server for OpenVMS. For this procedure, see the Compaq Advanced Server for OpenVMS Server Installation and Configuration Guide.
    If this node is running Compaq Advanced Server for OpenVMS, set up Compaq Advanced Server for OpenVMS for startup on reboot (edit the SYS$STARTUP file as necessary). You must reboot 0 to n times as needed, depending on your system configuration.
    If this node is not running Compaq Advanced Server for OpenVMS, edit the SYLOGICALS.COM file and define the PWRK$ACME_SERVER logical. For this procedure, see the Compaq Advanced Server for OpenVMS Server Installation and Configuration Guide. For more information about the PWRK$ACME_SERVER logical, see Table 8-2.
  11. Start the ACME server. Use the following command:


      $ @SYS$STARTUP:NTA$STARTUP_NT_ACME 
    

  12. Start RPC. Use the following command:


      $ @SYS$STARTUP:DCE$RPC_STARTUP.COM 
    

  13. Configure COM for OpenVMS. For this procedure, see Section 4.10 and Section 6.2.
  14. Edit the SYLOGICALS.COM file and add the following line:


      $ DEFINE DCOM$TO_BE_STARTED TRUE 
    

  15. Start COM for OpenVMS. For this procedure, see Section 4.11.


Previous Next Contents Index

  [Go to the documentation home page] [How to order documentation] [Help on this site] [How to contact us]  
  privacy and legal statement  
6539PRO_002.HTML