You can edit the configurable properties of your broker archive (bar) file deployment descriptor.
Before you start:
If you have not already created a bar file, create it now.
Follow these steps to edit properties using the Message Broker Toolkit:
Next:
Continue by deploying your broker archive (bar) file.
Follow these steps to edit properties using the mqsiapplybaroverride command:
In this example, the bar deployment descriptor file contains the following information, with elements that are to be changed are highlighted:
<?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>
Run the mqsiapplybaroverride command, specifying a property file that contains this information. This is the file that you created in step 2 (the first line is a comment):
#Old Value in broker.xml = New Value in broker.xml LOCAL_QUEUE_MGR = UnitTestQmgr INPUT_QUEUE = UnitTestInQueue1 REPLY_TO_QUEUE1 = OUTPUT_QUEUE = unitTestOutQueue1
When the command completes, the bar deployment descriptor is modified to:
<?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 this example, REPLY_TO_QUEUE1 is not set, because no replacement value was set in the properties file.
Next:
Continue by deploying your broker archive (bar) file.