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 » Environment Tree

Post new topic  Reply to topic
 Environment Tree « View previous topic :: View next topic » 
Author Message
Sam Uppu
PostPosted: Tue Oct 12, 2010 11:05 am    Post subject: Environment Tree Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

Hi Guys,

I have a requirement where I need to store the request message in a queue.

Initially I am storing it in Environment Variable and then I am copying it to outputRoot(SET OutputRoot = Environment.Variable.State) to drop it to a queue.I see the message of length zero is written to queue.

When I copy the Environment tree to Output Tree like below, I see message in queue.

SET OutputRoot.Properties = Environment.Variable.State.Properties;
SET OutputRoot.MQMD = Environment.Variable.State.MQMD;
SET OutputRoot.XMLNS = Environment.Variable.State.XMLNS;

Can you guys throw some light on this.

Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Oct 12, 2010 11:40 am    Post subject: Re: Environment Tree Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Sam Uppu wrote:
Can you guys throw some light on this.


A message is more than just data on a queue. If it doesn't have an MQMD it doesn't count. WMB & the MQOuput node can build one for you if coded to, but just putting your data into the bitstream & expecting it to work won't.

You're also moving your data to OutputRoot, effectively deleting the Properties section of the message tree that WMB uses to describe the message internally. If you'd used CopyMessageHeaders then SET OutputBody = etc might have worked for you. Or SET OutputRoot.XMLNSC = etc

(Because you use XMLNSC for all new development don't you??)

But the 2nd way you describe is the correct way. There are many, many subtle design variations of this and I doubt any is the "right" one.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Oct 12, 2010 12:01 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You're also moving your data from trees that have parsers assigned to them to trees that don't, and then back again.

As previously discussed.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Environment Tree
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.