2016-03-02 37 views
0

我在DataPower中有一個情況,我有一個MQ輸入和2個MQ輸出來實現。我已經配置了MQ FSH並試圖管理XSL中的分發。但不知道如何做多個分配。DataPower中的多個MQ目標

能有人幫

回答

0
<!-- 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> 

類似的東西會做。然後,您可以將其他消息作爲後端連接發送出去。

0

這是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/Destination

是的,流程完成。