Die konfigurierbaren Eigenschaften des Implementierungsdeskriptors der Brokerarchivdatei (BAR) kann bearbeitet werden.
Vorbereitungen:
Erstellen Sie jetzt eine BAR-Datei, falls noch nicht geschehen.
Führen Sie die folgenden Schritte aus, um Eigenschaften mit dem Message Broker Toolkit zu bearbeiten:
Weitere Schritte:
Führen Sie nun einenImplementierungsvorgang für Ihre BAR-Datei aus.
Führen Sie die folgenden Schritte aus, um mit dem Befehl mqsiapplybaroverride Eigenschaften zu bearbeiten:
In diesem Beispiel enthält die BAR-Implementierungsdeskriptordatei folgende Angaben, wobei zu ändernde Elemente hervorgehoben sind:
<?xml version="1.0" encoding="UTF-8"?>
<Broker>
<CompiledMessageFlow name="sampleFlow">
<ConfigurableProperty uri="sampleFlow#additionalInstances" />
<ConfigurableProperty uri="sampleFlow#commitCount" />
<ConfigurableProperty uri="sampleFlow#commitInterval" />
<ConfigurableProperty uri="sampleFlow#coordinatedTransaction" />
<ConfigurableProperty override="LOCAL_QUEUE_MGR"
uri="sampleFlow#MQOutput.queueManagerName" />
<ConfigurableProperty override="INPUT_QUEUE"
uri="sampleFlow#MQInput.queueName" />
<ConfigurableProperty override="REPLY_TO_QUEUE1"
uri="sampleFlow#MQOutput.replyToQ" />
<ConfigurableProperty uri="sampleFlow#MQInput.topicProperty" />
<ConfigurableProperty uri="sampleFlow#MQOutput.replyToQMgr" />
<ConfigurableProperty uri="sampleFlow#MQInput.validateMaster" />
<ConfigurableProperty
uri="sampleFlow#MQInput.serializationToken" />
<ConfigurableProperty uri="sampleFlow#MQOutput.validateMaster" />
<ConfigurableProperty override="OUTPUT_QUEUE"
uri="sampleFlow#MQOutput.queueName" />
</CompiledMessageFlow>
</Broker>
Führen Sie den Befehl mqsiapplybaroverride aus, und geben Sie dabei eine Eigenschaftendatei an, die diese Angaben enthält. Diese Datei wurde in Schritt 2 erstellt (die erste Zeile ist ein Kommentar):
#Alter Wert in 'broker.xml' = neuer Wert in 'broker.xml' LOCAL_QUEUE_MGR = UnitTestQmgr INPUT_QUEUE = UnitTestInQueue1 REPLY_TO_QUEUE1 = OUTPUT_QUEUE = unitTestOutQueue1
Nach Abschluss des Befehls ist der BAR-Implementierungsdeskriptor wie folgt geändert:
<?xml version="1.0" encoding="UTF-8"?>
<Broker>
<CompiledMessageFlow name="sampleFlow">
<ConfigurableProperty uri="sampleFlow#additionalInstances" />
<ConfigurableProperty uri="sampleFlow#commitCount" />
<ConfigurableProperty uri="sampleFlow#commitInterval" />
<ConfigurableProperty uri="sampleFlow#coordinatedTransaction" />
<ConfigurableProperty override="UnitTestQmgr"
uri="sampleFlow#MQOutput.queueManagerName" />
<ConfigurableProperty override="UnitTestInQueue1"
uri="sampleFlow#MQInput.queueName" />
<ConfigurableProperty uri="sampleFlow#MQOutput.replyToQ" />
<ConfigurableProperty uri="sampleFlow#MQInput.topicProperty" />
<ConfigurableProperty uri="sampleFlow#MQOutput.replyToQMgr" />
<ConfigurableProperty uri="sampleFlow#MQInput.validateMaster" />
<ConfigurableProperty
uri="sampleFlow#MQInput.serializationToken" />
<ConfigurableProperty uri="sampleFlow#MQOutput.validateMaster" />
<ConfigurableProperty override="UnitTestOutQueue1"
uri="sampleFlow#MQOutput.queueName" />
</CompiledMessageFlow>
</Broker>
In diesem Beispiel ist REPLY_TO_QUEUE1 nicht gesetzt, da in der Eigenschaftendatei kein Ersetzungswert festgelegt wurde.
Weitere Schritte:
Führen Sie nun einenImplementierungsvorgang für Ihre BAR-Datei aus.