The general format of the Event Transmitter XML file is as follows:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <StExternHandlerModule version="2.0"> <Handler> <Name>ActiveMQ MPX Transmitter</Name> <Description>...</Description> <Properties> <ClientDefault>...</Client default> <ServerDefault>...</Server default> </Properties> <Profiles> <Profile> ...profile #1 information... </Profile> <Profile> ...profile #2 information... </Profile> ...more profiles, if any... </Profiles> </Handler> </StExternHandlerModule>
Note that in this example, the ellipses (…) denote information where some details have been left out. Some XML parameters in the Event Transmitter XML file are used to identify the Event Transmitter library to the server configuration; the presence and order of these parameters should not be modified.
The following table lists the parameters that can be modified to tailor the connection profiles within the XML file. The parameters are listed in the order in which they appear in the XML file.
Unless otherwise stated, all integer parameters have very large positive ranges. For example, all time values have a range of 1 to 2,147,483,647. In most cases, you should consider the default value the minimum setting. Use a practical upper limit based on common sense.
| Parameter | Description |
|---|---|
| ServerDefault |
Defines the server default profile. Its value must match the name of a Profile within the Profile Set group in this XML file. The server default profile is used by the Event Transmitter and File Transmitter to establish a Message Broker connection. For configuration-specific XML files, you can use the Server Administration tool to set a profile as the server default. |
| ClientDefault |
Defines the client default profile. Its value must match the name of a Profile within the XML file. The client default profile is used by clients as the default definition to establish a Message Broker connection. For configuration-specific XML files, you can use the Server Administration tool to set a profile as the client default. |
| Profile |
Can be repeated. It is both a group for parameters and a member of the Profiles group. Each profile has a name, a brief textual description, and a set of properties. The initial profiles in the Event Transmitter XML file are specified during the transmitter’s installation. In most cases, the default values are sufficient and do not need to be changed. However, if you need to add, move, or remove Message Brokers, or if you want to customize any connection profile settings, you can edit the XML file.
|
<Profile> <Name>Off-site</Name> <Description>The Message Broker profile for clients off-site.</Description> <Properties> <server_write_timeout>30</server_write_timeout> <server_names>tcp:123.45.6.78:61616</server_names> <socket_connect_timeout>10</socket_connect_timeout> <server_start_delay>10</server_start_delay> <enable_control_msgs>echo</enable_control_msgs> <server_max_reconnect_delay>10</server_max_reconnect_delay> <project>Starbase</project> <server_start_max_tries>1</server_start_max_tries> <server_keep_alive_timeout>30</server_keep_alive_timeout> </Properties> </Profile>
If you manually edit an Event Transmitter configuration-specific XML file, the changes will take effect after you save the updated file and restart the corresponding configuration. If you use the Server Administration tool, changes go into effect immediately for all new client connections.
If you edit an Event Transmitter template XML file, you can only edit it manually. The updated file will be used for new configurations that you create using the Server Administration tool.