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 » Output message body to file using trace node?

Post new topic  Reply to topic
 Output message body to file using trace node? « View previous topic :: View next topic » 
Author Message
alcap0ne
PostPosted: Tue Apr 25, 2006 2:35 pm    Post subject: Output message body to file using trace node? Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 25, 2006 4:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Tue Apr 25, 2006 5:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
alcap0ne
PostPosted: Wed Apr 26, 2006 5:18 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Apr 26, 2006 5:22 am    Post subject: Reply with quote

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
View user's profile Send private message
alcap0ne
PostPosted: Wed Apr 26, 2006 5:39 am    Post subject: Reply with quote

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
View user's profile Send private message
JT
PostPosted: Thu Apr 27, 2006 11:48 am    Post subject: Reply with quote

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
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 » Output message body to file using trace node?
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.