ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » I have a need to save an original message and reuse it later

Post new topic  Reply to topic
 I have a need to save an original message and reuse it later « View previous topic :: View next topic » 
Author Message
MikeOliverAZ
PostPosted: Sun Sep 08, 2013 9:00 pm    Post subject: I have a need to save an original message and reuse it later Reply with quote

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
View user's profile Send private message Send e-mail
dogorsy
PostPosted: Sun Sep 08, 2013 9:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Mon Sep 09, 2013 3:55 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » I have a need to save an original message and reuse it later
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.