Topic
1 reply Latest Post - ‏2013-01-02T13:35:57Z by kenhygh
JasonJava
JasonJava
69 Posts
ACCEPTED ANSWER

Pinned topic MQ communication - "var://service/routing-url" vs "url open"

‏2013-01-02T04:05:55Z |
I am trying to drop a message into the MQ.
Interestingly, "dp:url-open" method works just fine but "var://service/routing-url" method did not work but there is no error.
Any idea ? Thanks for any help.

<!-- this works -->
<xsl:template match="/">
<dp:url-open target="dpmq://MQMW_NGDC/?RequestQueue=myQueue;AsyncPut=true" response="ignore">
<xsl:copy-of select="MYSTUFF"/>
</dp:url-open>
</xsl:template>


<!-- this does not work -->
<xsl:template match="/">
<xsl:variable name="backsideQueue" select="'dpmq://MQMW_NGDC/?RequestQueue=myQueue;AsyncPut=true'"/>
<dp:set-variable name="'var://service/routing-url'" value="$backsideQueue" />
<xsl:copy-of select="MYSTUFF"/>
</xsl:template>
Updated on 2013-01-02T13:35:57Z at 2013-01-02T13:35:57Z by kenhygh
  • kenhygh
    kenhygh
    1308 Posts
    ACCEPTED ANSWER

    Re: MQ communication - "var://service/routing-url" vs "url open"

    ‏2013-01-02T13:35:57Z  in response to JasonJava
    Well, what else is going on in your processing? Setting that service variable means that when your request rule is finished, the results action will pass data to that URL. If you're overriding that somewhere later in your processing, then nothing will be put to that queue.

    Setting that variable should result in a debug message in the log, so you should be able to see that it's being set properly.

    Ken