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 » IBM MQ API Support » Does a printf have any effect in a trigger program?

Post new topic  Reply to topic
 Does a printf have any effect in a trigger program? « View previous topic :: View next topic » 
Author Message
mac1929
PostPosted: Tue Oct 15, 2002 1:03 pm    Post subject: Does a printf have any effect in a trigger program? Reply with quote

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
View user's profile Send private message
bduncan
PostPosted: Tue Oct 15, 2002 8:57 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Does a printf have any effect in a trigger program?
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.