Author |
Message
|
alcap0ne |
Posted: Tue Apr 25, 2006 2:35 pm Post subject: Output message body to file using trace node? |
|
|
Newbie
Joined: 25 Apr 2006 Posts: 3 Location: Toronto
|
Hi,
I have a large message that I need to write to a file.
I am trying to use a trace node using {Root} or {Body} tags to write data to a file.
Its a really simple message flow, however it will not write anything if I use {Body}.
If I use {Root} , it will process to a certain point, up to the MRM tag and then truncate.
{ExceptionList} works but does not get me the data that I need.
The other option I have is to use sendmail to email the data. I just dont want to overcomplicate things.
Please let me know if you have any ideas. This is my first post to this discussion board.
Thanks, |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Apr 25, 2006 4:22 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
If you can't parse the data, then you can't trace the data.
If you're seeing that ${Root} stops at a certain point, it has stopped at the point where it stopped being able to parse. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
wschutz |
Posted: Tue Apr 25, 2006 5:05 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Use a reset content descriptor node to set the domain to BLOB before the trace node, then you can dump the message. (assuming that's satisfactory for you) _________________ -wayne |
|
Back to top |
|
 |
alcap0ne |
Posted: Wed Apr 26, 2006 5:18 am Post subject: |
|
|
Newbie
Joined: 25 Apr 2006 Posts: 3 Location: Toronto
|
I tried to use a reset content descriptor to set the domain to BLOB. However, I was still using {Root} and/or {Body} to dump the data to a file. Is that ok? Because it didnt write anything to the file when I did that.
I just need to get two fields off the data, so as long as I can write it to a file, I should be ok.
Thanks for your help |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Apr 26, 2006 5:22 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can't get fields from the data if you can't parse the data.
Your data is not matching your model. You need to worry about fixing that first, rather than anything else.
The trace node is not well suited for production use as "output data to a file". You can't change where the file is or what it's named based on message content, you can't delete the file if it's already been written to at least once, you can't overwrite data only append, etc... etc...
You're probably better served by using a Java procedure or a Java Compute node if using v6. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
alcap0ne |
Posted: Wed Apr 26, 2006 5:39 am Post subject: |
|
|
Newbie
Joined: 25 Apr 2006 Posts: 3 Location: Toronto
|
Thanks,
I will check the message set and compare it against the message being parsed.
I'm using 5.1 , so I dont think I can use Java compute nodes.
If I need an example of a Java procedure, where would I need to look.
I need to complete this for a one-time fix, and will not be running in production. |
|
Back to top |
|
 |
JT |
Posted: Thu Apr 27, 2006 11:48 am Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
Quote: |
I will check the message set and compare it against the message being parsed. |
You may not need to do this, as the ExceptionList will probably pinpoint the problem for you:
Quote: |
{ExceptionList} works but does not get me the data that I need. |
|
|
Back to top |
|
 |
|