Skip to content
Diamond Sierra

Configuring Message Handlers

Message Handler Overview,Message Server Overview,Message Server Configuration

Updated · By Diamond Sierra

On this page

Message Handler Overview,Message Server Overview,Message Server Configuration

Remarks

When an Enterprise message server starts, it attempts to start and connect to each message handler, specified in its configuration file. The configuration file is created through the Configurations Dialog.

Note that on Windows 95, message handlers require the DCOM for 95 add-in component. This component can be downloaded from Microsoft's web site.

Configuration elements (view configuration dialog)

Name

The name of a message handler is used for three purposes; a registry key is created with that name to store state information about the message handler such as the last message it processed, the name is used to identify the message handler in notification messages, and the name is passed to the OnInitalize method.

Description

A note placeholder. This information is stored in the workspace but is not transmitted to the message server.

Object ID

This is the ProgID or CLSID identifying the registered COM server to be loaded. The simplest way to specify a server is through the ProgID (e.g. MyObj.MyObj.1). If the Object ID data string begins with a brace ({) it will be interpreted directly as a CLSID; otherwise it will be treated as a ProgID. This is the only value required to instantiate a message handler.

Init String

This string will be passed directly to the OnInitialize method, allowing message handlers to receive configurable parameters. If a large number of parameters are needed, pass the name of an INI file or registry key where the message handler can retrieve the necessary information.

Message keys

A message handler will only receive those messages for which it has the proper security identifiers.

Filter

Messages presented to a message handler can be pre-filtered in the same manner as messages downloaded to message viewers.

Retry schedule

A retry schedule can be assigned to each message handler. If the message handler fails to load or an error is encountered after a message handler is loaded, the message server will try to load it again after a configurable interval. This is useful for message handlers accessed through DCOM on a remote machine. If the network is down or the machine must be rebooted, the connection to the message handler will be re-established automatically. See the topic Configuring Retry Schedules for more information.