|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to tell if API exit is invoke |
« View previous topic :: View next topic » |
Author |
Message
|
KIT_INC |
Posted: Fri Mar 28, 2014 1:33 pm Post subject: How to tell if API exit is invoke |
|
|
Knight
Joined: 25 Aug 2006 Posts: 589
|
Environment is MQ and AMS V7.0 , WMB V7.
We are using MQAMS between a sending MQ and the receving MQ/MB.
The AMS exit on the sending side was invoked and encrypt the XML message. But the broker message flow is getting a parsar error saying that the input message is not XML. We suspect that the API exit is not invoke to decrypt the message when the broker MQGET the message off the Queue. We try to run mq trace with just type -api. and did not see any AMS data. We were wondering if we should use some other trace type value or if there is a better way to tell that the EXIT is actually invoked ?
BTW, we see no AMS error at all. That's why we think the the exit is not getting control instead of perhaps certificate problem.
The use Id putting the message to the queue is mqm and our broker is running with ID mqm. So I think there should be no authorization issue. |
|
Back to top |
|
 |
tczielke |
Posted: Sat Mar 29, 2014 6:52 am Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
Running a trace with the "-t all" will give you the most information. I haven't verified it, but I would anticipate you would see if an exit is being loaded with that type of trace.
Also, you didn't mention your operating system platform, but if this is Unix/Linux, you can use a command like lsof (or pfiles for Solaris) to see if the exit shared object file has been opened by your process as an exit invocation verification technique. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sat Mar 29, 2014 7:51 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
If the exit is defined correctly to WMQ (Windows registry, mqs.ini, qm.ini), you would receive an error if the exit could not be found or loaded. Did you get any error logged? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
KIT_INC |
Posted: Sun Mar 30, 2014 6:06 am Post subject: |
|
|
Knight
Joined: 25 Aug 2006 Posts: 589
|
The platform is linux on x86
There is no error anywhere , MQ or AMS logs. That's the problem.
I was trying to avoid doing a -t all which produce a large amount of data. I'll try the t - all if there is no other suggestion. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sun Mar 30, 2014 6:32 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
How about having the exit do something simple and noticeable, like writing a 'hello world' string to disk - in a test environment. At least you will verify that the exit gets called. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
mqjeff |
Posted: Sun Mar 30, 2014 8:03 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You should be able to do just an MQ trace on the IIB DataFlowEngine process. That's where the MQ call is going to be made from, and that's where the exit will or will not be called.
If you put your flow in it's own Integration Server/Execution Group, and leave it stopped until you're ready to run the trace (and run an IIB service trace at the same time.... ), you should be able to only collection the exact information you're looking for, and not collect information about every use of MQ on the entire machine or queue manager.
Note that I'm suggesting you run BOTH an MQ trace and an IIB Service Trace at the same time, for exactly and only one specific DataflowEngine process that ONLY has your flow deployed to it.
Bruce, the exit in question is WebSphere MQ AMS. It's not really something one can change on a whim. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|