如何将消息发送到 Message Broker 中的目标列表..?
How to Send Message to Destination List in Message Broker..?
向这里的所有聪明人问好!!
我是 WebSphere Message Broker 的新手,我有这样的问题..
问题
创建示例流以从队列接收 XML 消息并将其发送到目标列表..
我将通过 MQ-OUTPUT 将输出发送到特定队列名称,但如何将其发送到目标列表..?
您需要在节点的“高级”选项卡中使用 "Destination Mode" 属性 将 MQ 输出节点设置为 "Destination List" 模式。
然后您可以设置本地环境值OutputLocalEnvironment.Destination.MQ.DestinationData[X].queueName = <queueName>
例如,查看 Infocenter 主题中给出的函数 http://www-01.ibm.com/support/knowledgecenter/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ac16862_.htm
CREATE PROCEDURE addToMQDestinationList(IN LocalEnvironment REFERENCE, IN newQueue char) BEGIN
/*******************************************************************************
* A procedure that adds a queue name to the MQ destination list in the local environment.
* This list is used by an MQOutput node that has its mode set to Destination list.
*
* IN LocalEnvironment: the LocalEnvironment to be modified.
* IN queue: the queue to be added to the list
*
*******************************************************************************/
DECLARE I INTEGER CARDINALITY(LocalEnvironment.Destination.MQ.DestinationData[]);
IF I = 0 THEN
SET OutputLocalEnvironment.Destination.MQ.DestinationData[1].queueName = newQueue;
ELSE
SET OutputLocalEnvironment.Destination.MQ.DestinationData[I+1].queueName = newQueue;
END IF;
END;
向这里的所有聪明人问好!!
我是 WebSphere Message Broker 的新手,我有这样的问题..
问题
创建示例流以从队列接收 XML 消息并将其发送到目标列表..
我将通过 MQ-OUTPUT 将输出发送到特定队列名称,但如何将其发送到目标列表..?
您需要在节点的“高级”选项卡中使用 "Destination Mode" 属性 将 MQ 输出节点设置为 "Destination List" 模式。
然后您可以设置本地环境值OutputLocalEnvironment.Destination.MQ.DestinationData[X].queueName = <queueName>
例如,查看 Infocenter 主题中给出的函数 http://www-01.ibm.com/support/knowledgecenter/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ac16862_.htm
CREATE PROCEDURE addToMQDestinationList(IN LocalEnvironment REFERENCE, IN newQueue char) BEGIN
/*******************************************************************************
* A procedure that adds a queue name to the MQ destination list in the local environment.
* This list is used by an MQOutput node that has its mode set to Destination list.
*
* IN LocalEnvironment: the LocalEnvironment to be modified.
* IN queue: the queue to be added to the list
*
*******************************************************************************/
DECLARE I INTEGER CARDINALITY(LocalEnvironment.Destination.MQ.DestinationData[]);
IF I = 0 THEN
SET OutputLocalEnvironment.Destination.MQ.DestinationData[1].queueName = newQueue;
ELSE
SET OutputLocalEnvironment.Destination.MQ.DestinationData[I+1].queueName = newQueue;
END IF;
END;