Chapter 5: Distributing COM Components

This chapter discusses the Distrubuted Common Object Model (DCOM) and how to use it to distrubute COM components.

Using DCOM

DCOM (Distributed Common Object Model) enables you to distribute COM clients and objects across different machines on a network. You can run any OO COBOL COM object across a network by providing the right registry information on the client and server machines. The registry entry for the client machine enables it to find the remote machine where the server exists.

Locating a Remote COM Object

Figure 5-1: Locating a Remote COM Object

You need to generate two .reg files for your COM object; one to register it on client machines, and one to register it on the remote server machine. The Net Express Class Wizard does this for you if you specify that an Automation server class is remote when you create it; however, you often develop a COM object as a local server, and then redeploy it as a remote server when you have finished.

See the Help topic To generate a COM registry file for more information.

Use the client registry file to register the server on all the client machines you want to have access to it. Use the server registry file to register the server on the server machine. You also need to install either Net Express or reUZE Server on your server machine.

DCOM and Security

Windows NT security can occasionally cause some problems in starting, running and accessing distributed servers. This section lists the main points you should check when using DCOM and Windows NT:

See Microsoft documentation for more information about security issues.


Copyright © 2006 Micro Focus (IP) Ltd. All rights reserved.