Calling Broker ActiveX Control Remotely

You can call Broker ActiveX Control remotely if you use it as an automation server. This means you can use the Broker component from a separate process - either on the same machine or on another machine in the network.

This document covers the following topics:


Setting up the Server Environment

Start of instruction setTo set up the server environment

  1. From the Administrative Tools in the Control Panel, open the Component Services on the server.

    The following dialog box will be displayed:

    graphics/CompServices.png

    Select EntireX Broker ActiveX Control in the DCOM Config list box and choose the properties from the context menu.

    The following dialog box will be displayed:

    graphics/DCOMConfigProps.png

  2. Click the Security tab.

    Click the Security tab.

    graphics/Security.png

    In the dialog box displayed above, keep the defaults for access, launch and configuration permissions.

  3. Click the Identity tab.

    graphics/Identity.png

    There are three options to define the user account to be used to run the application:

    • The interactive user

      This implies that a user with permission to launch the application must be logged on to the server machine.

    • The launching user

      This implies that an account must be created on the server machine with the same username/password as on the client machine. This account will then be used to launch the application.

    • This user

      A final option is to specify a user account to be used when launching the application.

    In each case, the username/password of the client machine must also exist on the server machine.

    Select one of the options and choose OK to return to the Component Services.

  4. Click on My Computer and choose the properties from the context menu.

    Click on My Computer and choose the properties from the context menu.

    graphics/MyComputerProps.png

    The following dialog box will be displayed; click on the Default Properties tab.

    graphics/DefaultProps.png

    Choose the options as shown in the dialog box above.

  5. Click on the COM Security tab.

    Click on the COM Security tab.

    graphics/COMSecurity.png

    In the Launch and Activation Permissions area of the dialog box displayed above, choose Edit Default. The following dialog box will be displayed:

    graphics/LaunchPermission.png

    Make sure that either the user corresponding to the client machine account, or a group to which the user belongs, has Allow Launch as Type of Access.

    Choose OK in this screen and then Apply, and exit Component Services on the server.

Setting up the Client Environment

The EbxProxy.dll is installed by default on the server in directory <drive>:\SoftwareAG\EntireX\bin. Copy the file from the server machine to the client machine.

The DLL must then be registered with: REGSVR32 <path>\EBXproxy.dll.

Start of instruction setTo configure the client environment

  1. From the Administrative Tools in the Control Panel, open the Component Services on the client.

    The following dialog box will be displayed:

    graphics/CompServices.png

    Select EntireX Broker ActiveX Control in the DCOM Config list box, choose the properties from the context menu and click the Location tab.

  2. In the Location tab of the ActiveX Control Properties dialog box above, select the checkbox Run application on the following computer: and enter either the hostname or the IP address of the server machine.

    graphics/Location.png

    Choose Apply and then OK.

  3. Select My Computer and choose the properties from the context menu.

    graphics/MyComputerProps.png

    The My Computer Properties dialog box will be displayed. Select the Default Properties tab.

    graphics/DefaultProps.png

    Choose the check box Enable Distributed COM on this computer, set the default authentication level to Call and the default impersonation level to Identify.

    Choose OK.

Testing the Connection

You are now ready to test the connection between the client machine and the server machine.

Test the TCP/IP Connection

Test the TCP/IP connection between the client and the server (use, for example, ping).

Test the Remote Call

To test whether an application can be called remotely, you can use the OLE/COM Object Viewer:

Run the OLE/COM Object Viewer on the client.

The OLE/COM Object Viewer dialog box will be displayed:

graphics/OLECOMObjectViewer.png

Select Automation Objects in the navigation frame to display a list of all the automation objects on the client machine.

A screen similar to the one displayed below will be displayed:

graphics/AutomationObjects.png

Select EntireX Broker ActiveX Control, open its context menu and choose Create Instance.

If the remote call is successful, the EntireX Broker component on the server machine will be called and the following screen will be displayed:

graphics/RemoteSuccess.png

If you receive an error message (for example "Class not registered") check the following:

  • the TCP/IP connection (with PING)

  • the security definitions on the server with Component Services

  • the remote server name on the client (this can also be checked with the OLE/COM Object Viewer)

When the connection has been established, you will be able to run your application on the client. Note that Broker ActiveX Control must be used as automation server. For information on how to use Broker ActiveX Control with Visual Basic see Using Broker ActiveX Control as an Automation Server.