|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Does a printf have any effect in a trigger program? |
« View previous topic :: View next topic » |
Author |
Message
|
mac1929 |
Posted: Tue Oct 15, 2002 1:03 pm Post subject: Does a printf have any effect in a trigger program? |
|
|
Novice
Joined: 15 Oct 2002 Posts: 10
|
I have started recently with MQ trigger programming. I've seen at IBM samples that code is full of "println"s. I've compliled and exectuted one of these sample programs (don´t remenber which right now) as a trigger under win2k but I cannot find where is all the text that it supposedly writes. Where does it go?
I also have a problem with IBM samples. Triggering works, and the program runs but it stays in memory for some seconds doing nothing. I've included at the beginning and at the end of the code some lines to store a timestamp in a file. The program does its work in less than a second (it only echoes a message to ReplyToQ), but it takes a long time to start, well, actually it goes to memory as task manager lists it, but does nothing for some time. This issue does not happen always, if I comment all MQI calls so the file does not import MQSeries dlls, it starts inmediately. Any idea? |
|
Back to top |
|
 |
bduncan |
Posted: Tue Oct 15, 2002 8:57 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
You can redirect STDOUT of triggered applications using some trickery (especially in UNIX), but by default there is no file that is created to capture the STDOUT. In fact, the output of the trigger monitor itself isn't logged anywhere by default. _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
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
|
|
|
|