Author |
Message
|
Blomman |
Posted: Wed Jan 24, 2007 8:19 am Post subject: TraceNode -> File |
|
|
Master
Joined: 31 Oct 2006 Posts: 230
|
Hi all!
I have tracenods in many of my flows.
And im putting som info from MQRFH2 into log files, u can specify /path/path/filename in properties of the tracenode and a pattern aswell.
However is there som issues here that i should consider?
I have a script who rotates the files and zippes them etc..
1. The file is created by "MQ" itself but can i copy the file and remove it?
So "MQ" can create it again as soon somethings goes through the tracenode.
Can i create the file myself? Will "MQ" write in that file(Yes after i changed the rights for the file etc) or has it somkind of handle so it just can use a file it has created itself?
2. It dont seem to write for every message that pass in to the file it writes only sometimes.
/Blomman |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jan 24, 2007 8:38 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Trace nodes should generally be taken out of production flows, as they impose performance hits even if not in use and bring about associated issues with managing files if writing to files.
You can't move or delete a file that a trace node has written to at least once since the message flow started.
You can copy all the contents to another location and reset the contents of the file to blank.
A trace node should always write to the file when it is invoked in a flow. It may not always have valid clean data to write, though, in which case it might *look* like it didn't write to it. It depends on the pattern. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Blomman |
Posted: Wed Jan 24, 2007 8:55 am Post subject: |
|
|
Master
Joined: 31 Oct 2006 Posts: 230
|
jefflowrey wrote: |
You can copy all the contents to another location and reset the contents of the file to blank.
. |
Can i copy the file?
jefflowrey wrote: |
A trace node should always write to the file when it is invoked in a flow. It may not always have valid clean data to write, though, in which case it might *look* like it didn't write to it. It depends on the pattern.
|
But if my pattern is to get info from a header that every message has that pass the flow, sholdnt it write into the file every time a message pass?
/Blomman |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jan 24, 2007 9:32 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Blomman wrote: |
jefflowrey wrote: |
You can copy all the contents to another location and reset the contents of the file to blank.
. |
Can i copy the file? |
Yes. on Unix you could do something like "cp myTracefile /mnt/archive/myTraceFile.<datestamp>; > myTracefile".
Blomman wrote: |
jefflowrey wrote: |
A trace node should always write to the file when it is invoked in a flow. It may not always have valid clean data to write, though, in which case it might *look* like it didn't write to it. It depends on the pattern.
|
But if my pattern is to get info from a header that every message has that pass the flow, sholdnt it write into the file every time a message pass? |
It should, assuming the header exists in every messages that passes the node. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Blomman |
Posted: Thu Jan 25, 2007 12:20 am Post subject: |
|
|
Master
Joined: 31 Oct 2006 Posts: 230
|
Where u set pattern etc there is an option "Message number" what function does it have?
/Blomman |
|
Back to top |
|
 |
Tibor |
Posted: Thu Jan 25, 2007 3:17 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
You can find details here. This property is working in correlation with Message Catalog. |
|
Back to top |
|
 |
|