Parameter sets in the scheduler

Instead of having to duplicate these parameters within each event stanza in the Scheduler.xml file, define a parameter set in the scheduler XML file. A parameter set is a group of one or more parameter tags that is given a name so it can be referenced by event tag sets. The PARAMETERREF tag is used to specify a named PARAMETERSET for an event.

For more information about using parameter sets, see Events and communication with external applications.

In the following example, the schedulerReferenceProperties parameter set defines all of the properties that are common for the events requiring WebSphere® MQ. The parameters that are common for all Risk events are in a separate parameter set called sendToRiskManagement. The sendToRiskManagement parameter set defines the receiving point ID and the name of the input queue where the Risk Management engine listens for messages.

<PARAMETERSET name="schedulerReferenceProperties">
   <PARAMETER name="jmsQmgrHostname">localhost</PARAMETER>
   <PARAMETER name="jmsQmgrPort">1414</PARAMETER>
   <PARAMETER name="jmsQmgrName">FTM.QMANAGER</PARAMETER>
   <PARAMETER name="jmsClient">true</PARAMETER>
   <PARAMETER name="jmsQmgrChannel">SYSTEM.DEF.SVRCONN</PARAMETER>
   <PARAMETER name="jmsReplyQueue">FXH.TRANSSERVER.INPUT.QUEUE</PARAMETER>
</PARAMETERSET>

<PARAMETERSET name="sendToRiskManagement">
   <PARAMETER name="destinationID">Risk Management</PARAMETER>
   <PARAMETER name="jmsSendQueue">FXH.RISK.INPUT.QUEUE</PARAMETER>
</PARAMETERSET>

Parameters that are defined in an event stanza and not in one of the PARAMETERSET tags are specific to the event stanza. If a parameter is defined in both a PARAMETERSET and the event stanza, the value in the event stanza is used.