MQPUT fails:2035 when enabling AMS in multi threaded environment

330 Views Asked by At

I am trying to use the AMS functionality in IBMMQ. After enabling AMS and setting policies to a particular queue I tried to put a message to the queue using MQPUT in the main thread of my application and it succeeded.

Afterwards I tried to give the MQCONN and MQPUT library commands in a separate worker-thread (posix thread)created, and the system always fails by saying the error code 2035 for that particular queue.

Can't we use the AMS facility with multi threading ? what is the settings or changes that needed to be done in order for this to be working?

( Our IBMMQ version is 7.5 / unix readhat / client mode )

1

There are 1 best solutions below

3
Morag Hughson On

In a multi-threaded application, the UserID that is running the application will still be the same user, so should be the same setup. However, the AMQERR01.LOG will show you EXACTLY what the security error actually was.