Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

MC2 keeps a cache of processing rules. To reinit reinitialize the rule cache, use the REST endpoint with an offset of 206 (. The default port is 20426) should be used:

http://appserver:20426/services/eagle/v2/commands/reinitrulecache

...

This endpoint is available only from the application server.

There An alternate approach is another way to reinit reinitialize the rule cache by using SOAP request or executing executing the eagle_ml-2-0_extract_service_control_message stream.

It works in the same way as with restart MC2 except that different commandType RTR task parameter, HTTP headerFeedType RTR task parameter are used and that any users have access to reinitialize the rule cache. Frontend For more information, see Restart MC2.

This is an example of a frontend server SOAP request example:

curl --user username:password --header "commandType:reinitrulecache" --header "commandValue:all" --header "SOAPAction:/EagleMLWebService/RunTaskRequestSync" --data-binary @RTR_REINITMC2.xml https://frontendserver/EagleMLWebService30 -o reinitMC2.txt

Backend This is an example of a backend server SOAP request example:

curl --header "commandType:reinitrulecache" --header "commandValue:all" --header "SOAPAction: /EagleMLWebService/RunTaskRequestSync" --data-binary @RTR_REINITMC2.xml http://backendserver:20421/services/eagle/v2/EagleMLWebService20 -o reinitMC2.txt

where 20421 is the default SOAP port number (portoffset 201).

The following are the required HTTP headers:

  • SOAPAction:/EagleMLWebService/RunTaskRequestSync - for SOAP request;
  • commandType:reinitrulecache
  • commandValue:[all] or [current]

Here This is an a RTR example:

Code Block
languagejs
titleRTR_REINITMC2.xml
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <runTaskRequest xmlns="http://www.eagleinvsys.com/2011/wsdl/EagleML-2-0">
      <EagleML xmlns="http://www.eagleinvsys.com/2011/EagleML-2-0" eaglemlVersion="2-0" xsi:schemaLocation="http://www.eagleinvsys.com/2011/EagleML-2-0 eagleml-main-2-0.xsd" eaglemlType="RunTaskRequest">
        <header>
          <messageId>541C2B1B66833C6C</messageId>
          <sentBy>http://www.client.com/user</sentBy>
          <sendTo>http://www.eagleinvsys.com/eagle_ml-2-0_default_cm_wrkfl_listener</sendTo>
        </header>
        <taskIdentifier>
          <correlationId correlationIdScheme="correlationIdScheme">{GUID}</correlationId>
          <businessTaskId correlationIdScheme="businessTaskIdScheme">541C2B1B66833C6C</businessTaskId>
        </taskIdentifier>
        <taskParameters>
          <taskParameter>
            <name>FeedType</name>
            <dataType>S</dataType>
            <value>REINIT</value>
          </taskParameter>
          <taskParameter>
            <name>ActionType</name>
            <dataType>S</dataType>
            <value>EXECUTE</value>
          </taskParameter>
		  <taskParameter>
            <name>commandType</name>
            <dataType>S</dataType>
            <value>reinitrulecache</value>
          </taskParameter>
		  <taskParameter>
            <name>commandValue</name>
            <dataType>S</dataType>
            <value>all</value>
          </taskParameter>
		</taskParameters>
      </EagleML>
    </runTaskRequest>
  </s:Body>
</s:Envelope>

...