I am trying to get MQ to run my API exit, written in C++ (it's a hacked version of the 
sample amqsaxe0.c). It works fine under Windows.

I am using the following to build the .so file:

CC -mt mqAPIExit.cpp -G -o mqAPIExit.so -lmqmzf -lmqm -lmqmcs -lmqmzse

and no errors are generated, and the output is generated.

I have added the following to qm.ini:

ApiExitLocal:
   Sequence=100
   Function=EntryPoint
   Module=/var/mqm/exits/mqAPIExit.so
   Name=mqAPIExit
   Data=16

But when I try to start the qmgr I get the following:

[EMAIL PROTECTED]:/var/mqm/trace]$ strmqm TEST
AMQ7214: The module '/var/mqm/exits/mqAPIExit.so' for Api Exit 'mqAPIExit'
could not be loaded for reason xecU_S_LOAD_FAILED.

I have tried running an early trace, but all the trace files give me is the same 
return code info, so I am suspecting that my build is not good.

Any help/comments appreciated,

Regards,

tonyB.

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