|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
I have a need to save an original message and reuse it later |
« View previous topic :: View next topic » |
Author |
Message
|
MikeOliverAZ |
Posted: Sun Sep 08, 2013 9:00 pm Post subject: I have a need to save an original message and reuse it later |
|
|
 Apprentice
Joined: 10 Jul 2013 Posts: 47
|
I get a message from MQ and I want to save it and do some processing and call a SOAP Request node, and merge the response with the original message before doing a MQ Reply.
I tried a flow order and a collector but that didn't work consistently and the mix of MQ and SOAP MQMD was tricky on the CorrelId matching needed by the Collector.
I have read on this forum that one solution is to "save the original message to memory" and I tried Environment.Variables.OriginalMessage = InputRoot.XMLNSC.* but got just the attributes not the whole tree.
Will keep trying unless one of you can offer some help to save time.
MO |
|
Back to top |
|
 |
dogorsy |
Posted: Sun Sep 08, 2013 9:40 pm Post subject: |
|
|
Knight
Joined: 13 Mar 2013 Posts: 553 Location: Home Office
|
you need to associate the folder Environment.Variables.OriginalMessage with the xmlnsc parser. You do that using the CREATE statement with the DOMAIN clause.
You also need to specify namespaces, e.g InputRoot.XMLNSC.*:*; |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Sep 09, 2013 3:55 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
This need stems from your disregard of the basic WMB concept that InputRoot should be treated as an immutable object, and you are not, modifying the Root tree as you process downstream calls.
If you had attended the Developers Training, you would have been present for a discussion on treating Root as read-only. Perhaps you may have forgotten this.
If you step-back from your implementation and take the correct approach, you will find that you do not need to store the incoming message in memory since it is presented that same way for all downstream processing as you would treat it as read-only.
 _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|