Posted: Thu Sep 20, 2012 9:40 am Post subject: MCA threading and Context Environment
Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
All,
Ok, I have another strange problem with an MQ API Exit that I'll try to explain. The API Exit looks at the MQAXC Environment field to determine whether or not the MQ API call is done by an application or internal MQ process. The API Exit will not track/audit internal MQ processes unless a specific flag is set (uses the environment field to determine this). This is true except for the MCA (i.e. MQXE_MCA).
When a queue manager is started the MCA (amqrmppa) process has environment value of MQXE_MCA. When the user pushes thousands of messages onto the remote queue (i.e. XMIT queue) of the sending queue manager then receiving queue manager's MCA will start a second amqrmppa thread (standard stuff).
Here's the weird part, the "n" MCA thread has the environment field set to MQXE_OTHER and not MQXE_MCA.
To prove to the customer that it was not my code, I used the Sample API Exit (amqsaxe) to show the values. The environment field is on line # 26 of each trace.
Here is the top snippet from ApiTrace.17760306.5.log:
Maybe I'm crazy but shouldn't the environment value always be MQXE_MCA for each MCA thread? I just want to confirm with other people (hopefully some IBMers are reading this) before I ask the customer to open a PMR.
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