【问题标题】:Multiple MQ destination in DataPowerDataPower 中的多个 MQ 目标
【发布时间】:2016-03-02 13:33:39
【问题描述】:

我在 DataPower 中有一个 MQ 输入和 2 个 MQ 输出要实现的情况。我已经配置了一个 MQ FSH 并尝试在 XSL 中管理分发。但不知道如何进行多重分配。

有人可以帮忙

【问题讨论】:

    标签: ibm-datapower


    【解决方案1】:
        <!-- Send the message via MQ -->
        <xsl:variable name="mqURL" select="concat('dpmq://[ MQ-QM-Object ]/?RequestQueue=[ Destination-queue ]')" />
        <xsl:variable name="urlOpenResult">
            <dp:url-open target="{$mqURL}" response="responsecode-ignore">
                <xsl:copy-of select="$output"/>
            </dp:url-open>
        </xsl:variable>
    

    这样的事情就可以了。然后您可以将另一条消息作为后端连接传递出去。

    【讨论】:

      【解决方案2】:

      这是对 Anders 答案的扩展。客户端到服务器的处理规则应该如下:匹配动作-->转换-​​->路由-->结果。转换操作应映射到以下 xsl:

      <xsl:variable name="mqURL1" select="concat('dpmq://GateWay_ST/?RequestQueue=multi1')" />
      <xsl:variable name="mqURL2" select="concat('dpmq://GateWay_ST/?RequestQueue=multi2')" />
      <xsl:variable name="urlOpenResult">
          <dp:url-open target="{$mqURL1}" response="responsecode-ignore">
              <xsl:copy-of select="$output"/>
          </dp:url-open>
      </xsl:variable>
      
      
      
      
          <!--Set the destination URL in the context variable--> 
      
          <dp:set-variable name="'var://context/mqbackend/Destination'" value="$mqURL2" />
      
      
      
      </xsl:template> 
      

      在路由操作中使用选项使用变量选择目的地

      var:// 上下文/mqbackend/目标

      是的,流程已经完成。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-02-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多