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 » Trace Node Usage

Post new topic  Reply to topic
 Trace Node Usage « View previous topic :: View next topic » 
Author Message
saviobarr
PostPosted: Tue Oct 21, 2014 4:52 am    Post subject: Trace Node Usage Reply with quote

Centurion

Joined: 21 Oct 2014
Posts: 100
Location: Sao Paulo, Brazil

Hi all,
I not quite familiar with Trace Node and its common use.
QUESTION: Is that correct put a Trace Node right after my first node in the flow?
The idea is to inspect every incoming message, when tracking down problems, by issuing a mqsichangetrace command.

Many Thanks

Savio Barros
Back to top
View user's profile Send private message Send e-mail
ruimadaleno
PostPosted: Tue Oct 21, 2014 8:55 am    Post subject: Reply with quote

Master

Joined: 08 May 2014
Posts: 274

as far as i understand your requirement is to inspect the message your flows are receiving.

We have implemented a similar requirement (we want to know messages entering and exiting message flows) using record and replay.

Every message flow is built with monitoring events configured. This events (basically the messages) are kept in a database we can query to find problems, errors ,etc. Also we can user broker web admin console to check de messages.

have a look at knowledge center/documentation.
_________________
Best regards

Rui Madaleno
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Oct 21, 2014 11:45 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The Trace node is a debugging tool - and a very useful one. It is not intended for use in production message flows.

For most debugging scenarios, the message flow debugger in the toolkit is a quick and easy way to inspect the message tree and step through your code ( ESQL or Java or .Net ).
When you need to inspect the message tree in more detail ( look at namespaces / field types etc ) or when you need to show a message tree to somebody else then the Trace node is a better option ( set the pattern to ${Root} )
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
MB Developer
PostPosted: Tue Oct 21, 2014 8:11 pm    Post subject: Reply with quote

Disciple

Joined: 03 Feb 2014
Posts: 179

It is better way to find errors in msg flow by using TRACE node ...

Sample :

MQInput Node --> Compute Node --> MQOutput Node

Now Connect MQInput Node Failure and Catch Terminal to Trace node.

Set Trace Node Properties :

Basic -- Destination -- File
File Path -- D:\MB_Development\sample.txt
Pattern : ${CURRENT_TIMESTAMP}
Exception List : ${ExceptionList}
----------------------------------------------------------------------


In MQInput Node Set:

Input Message parsing -- Message Domain -- XMLNSC : For XML messages (namespace aware, validation, low memory use)

Compute Node Just write code like below :

-- CALL CopyMessageHeaders();
--CALL CopyEntireMessage();

SET OutputRoot.XMLNSC.Employee = InputRoot.XMLNSC;

Enable debugger ....

Then put msg in Input Queue Other then XML format and Find in Trace node File path location ....
_________________
Thanks....
Back to top
View user's profile Send private message
saviobarr
PostPosted: Wed Oct 22, 2014 5:08 am    Post subject: Reply with quote

Centurion

Joined: 21 Oct 2014
Posts: 100
Location: Sao Paulo, Brazil

Thanks a lot. All replies were very helpful. javascript:emoticon('')
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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