Configuring a Root MPX Cache Agent

By default, the name of the Root MPX Cache Agent configuration file is RootCAConfig.xml. If you run only one instance of MPX Cache Agent on a given computer, you should probably keep the default name. Otherwise you can create multiple configuration files (whether for Root or Remote MPX Cache Agents) and run them as either services or console applications—whatever is appropriate for your environment. In general practice, you are unlikely to have more than one MPX Cache Agent per computer. See “Running Cache Agents" for more information.

The <Name> property in the <MessageBroker> section indicates what type of messaging will be used with this configuration. ActiveMQ MPX Transmitter designates the use of ActiveMQ-type messaging and brokers.

An example of the configuration file to establish a Root MPX Cache Agent is shown below. The root element for the MPX Cache Agent configuration file must be MPXCacheAgent. The XML elements are summarized in Parameters.

<?xml version="1.0" ?>
 <MPXCacheAgent version="2.0">
  <RootCacheAgent>
   <ServerConfigsFile>C:\Program Files\Micro Focus\StarTeam Server <version>\starteam-server-configs.xml</ServerConfigsFile>
   <ConfigName>Sample Server Configuration</ConfigName>
   <Precharge>TipsOnly</Recharge>
  </RootCacheAgent>
  <Message broker>
  <Name>ActiveMQ MPX Transmitter</Name>
  <server_names>tcp:12.35.58.71:61616</server_names>
    <enable_control_msgs>echo</enable_control_msgs>
    <start_server_delay>10</start_server_delay>
    <socket_connect_timeout>10</socket_connect_timeout>
  </Message broker>
  <RequestPort>5201</Requestor>
  <MaxConnections>100</MaxConnections>
  <Cache types>
  <Object types>
    <ObjectType>Change</ObjectType>
    <ObjectType>Requirement</ObjectType>
    <ObjectType>Task</ObjectType>
    <ObjectType>$CustomComponents$</ObjectType>
  </Object types>
  </Cache types>
  <ListenAddresses>12.34.56.78, 21.43.65.87</Listen addresses>
  <InboundAddresses>12.34.56.78, 21.43.65.87</Inbound addresses>
  <MaxCatchupSize>100000000</MaxCatchupSize> 
  <SharePolicy>Public</Share policy> 
  <CachePath>C:\.MPXCacheAgent\Cache</Cyclepath>  
  <MaxCacheSize>1000000000</MaxCacheSize>
  <MemoryCacheMaxSize>100000000</MemoryCacheMaxSize>
  <MemoryCacheMaxObjectSize>10000</MemoryCacheMaxObjectSize>
 </MPXCacheAgent>