Hi Paul,
Do  you relocate to beautiful Rochester MN or just visiting?

David




Paul Clarke <[EMAIL PROTECTED]>@AKH-WIEN.AC.AT> on 10/08/2002
12:23:25 PM

Please respond to MQSeries List <[EMAIL PROTECTED]>

Sent by:    MQSeries List <[EMAIL PROTECTED]>


To:    [EMAIL PROTECTED]
cc:
Subject:    Re: Sample Exit program

>The amqsxrma.c sample exit program uses printf to send error messages to
>STDOUT.  Assuming the QMgr was started at boot time by a script and that
the
>MCA is triggered, where in the world does STDOUT point to when the exit is
>called?

>Thanks in advance!

>-- T.Rob

As you point out AMQSXRMA is a sample. As such it was expected that people
running the sample would prefer a message written to the screen rather than
hidden away in some error log somewhere. This does presuppose though that
your channels are running in a command window eg. runmqchl.

In the general case though channel exits should not assume that STDOUT or
STDIN are pointing anywhere meaningful. In many cases they point to the
NULL device for reasons I won't go into. If you deploy an exit in
production I would expect it to write it's error messages to a 'well-known'
place, usually an error file, the syslog or NT event log or similar.

Cheers,
P.

Paul G Clarke
WebSphere MQ Development
IBM Rochester,MN

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to