|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Writing Environment tree into file using Fileoutput node |
« View previous topic :: View next topic » |
Author |
Message
|
Santosh_Ghalsasi |
Posted: Tue Nov 22, 2011 12:40 am Post subject: Writing Environment tree into file using Fileoutput node |
|
|
Novice
Joined: 01 Feb 2011 Posts: 19
|
Hi,
I am using Fileoutput node for writing data onto the files.
I have two doubts
1. How to write Environment tree into the file?
- I tried giving $Environment into the 'Data Location' field of node. Its not working.
2. If I want to write any specific tag from the message tree then how to do that?
- For this do I need to use xpath Expression Builder?
Please help.
Thanks, |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Nov 22, 2011 2:43 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Ignore the fact that this is the FileOutput node.
How would do you this with *any* output node? |
|
Back to top |
|
 |
Santosh_Ghalsasi |
Posted: Tue Nov 22, 2011 2:48 am Post subject: |
|
|
Novice
Joined: 01 Feb 2011 Posts: 19
|
Hi,
For environment variables, I need to bring them into body and for elements inside the body should be referred by giving the xpath.
Please correct me if I am wrong.
Thanks, |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Nov 22, 2011 3:12 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
In general, the best way to ensure that Broker writes out exactly and only the data that you wish it to write out is to use Broker to ensure that the Root tree contains exactly and only the data you wish to write out.
I.e. write your code to populate OutputRoot with the correct things and no incorrect things, and then ensure you have a model that matches the correct things. |
|
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
|
|
|
|