Posted: Tue Jan 10, 2012 12:55 am Post subject: are header nodes smart enough?
Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
Don't code what you can configure - a good design priciple which is more and more supported by Message Broker. Or actually it's what the whole product is about.
But do header nodes like MQHeader always force a (more or less deep) copy of the input root? Or are they smart enough to modify the header in situ when the input body parser can confirm the message to be fully parsed? (Modifying a header within InputRoot when the body has not been fully parsed may cause the modified header to be propagated to the input nodes catch terminal, which is not acceptable. Propagating a modified header to a TryCatch nodes catch terminal should be considered less inacceptable)
I haven't run any test on this, it's a bit difficult to figure out how to comfirm what is happening. So I decided to first try phishing up a somewhat authorized opinion by writing this hopefully discreetly irritating post.
But do header nodes like MQHeader always force a (more or less deep) copy of the input root?
Yes, it is a deep copy _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Does it a deep copy when 'Carry forward header' option is selected, too?
As far as I know a header node with 'Carry forward header' option selected does not do anything. The option is there only to make it possible to disable/enable the node by a LocalEnvironment overide?
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