The API exit sample program
The sample API exit generates an MQI trace to a user-specified file with a prefix defined in the MQS_TRACE_LOGFILE environment variable.
- Source
- amqsaxe0.c
- Binary
- amqsaxe
Configuring for the sample exit
- Add the following to the qm.ini file (or the registry on Windows). See the WebSphere MQ System Administration Guide for how to do this.
- Platforms other than Windows
ApiExitLocal: Sequence=100 Function=EntryPoint Module=install_dir/samp/bin/amqsaxe Name=SampleApiExitwhere install_dir is the directory where WebSphere MQ was installed.
- Windows
ApiExitLocal: Sequence=100 Function=EntryPoint Module=install_dir\Tools\c\Samples\bin\amqsaxe Name=SampleApiExitwhere install_dir is the directory where WebSphere MQ was installed.
- Set the environment variable
MQS_TRACE_LOGFILE=/tmp/MqiTrace- Run your application.
Output files will appear in the /tmp directory with names like: MqiTrace.<pid>.<tid>.log
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.