|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Identifying QName in GetAfter() API Exit ???? |
« View previous topic :: View next topic » |
Author |
Message
|
Shalini |
Posted: Fri Sep 03, 2004 6:50 am Post subject: Identifying QName in GetAfter() API Exit ???? |
|
|
Master
Joined: 30 Apr 2002 Posts: 224 Location: India
|
Hi All,
We have a critical requirement where the GetAfter should fire on a specify Queue not for all, which is happening now for Put1After event and not for GetAfter .
To be specific, we want the Queue Name which is (reading) getting the message from the respective Queue.
Put1After:
void MQENTRY Put1After(PMQAXP pExitParms, PMQAXC pExitContext, PMQHCONN pHconn, PPMQOD ppObjDesc, PPMQMD ppMsgDesc, PPMQPMO ppPut1MsgOpts, PMQLONG pBufferLength, PPMQVOID ppBuffer, PMQLONG pCompCode, PMQLONG pReason)
GetAfter:
void MQENTRY GetAfter(PMQAXP pExitParms, PMQAXC pExitContext, PMQHCONN pHconn, PMQHOBJ pHobj, PPMQMD ppMsgDesc, PPMQGMO ppGetMsgOpts, PMQLONG pBufferLength, PPMQVOID ppBuffer, PPMQLONG ppDataLength, PMQLONG pCompCode, PMQLONG pReason)
As the above two prototype depicts a typical GetAfter Event and Put1After Event in API Exit.
As We have a parameter PPMQOD ppObjDesc in Put1After. But this is not available for GetAfter.
Can anybody suggest me regarding this issue.
regards,
Shalini. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Fri Sep 03, 2004 7:31 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi,
This is not as simple as that. On the open, you will need to store the queue name and the object handle in say a link-list. Then in your GetAfter, you will search the link-list comparing the current object handle with one from the list. When you find a match then you will have the queue name.
Regards,
Roger Lacroix _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
Shalini |
Posted: Fri Sep 03, 2004 8:47 am Post subject: |
|
|
Master
Joined: 30 Apr 2002 Posts: 224 Location: India
|
Thanks for your kind reply.
We have a few queries.
In your valuable suggestion what about the following:
a. Performance.
b. How many calls will be made to GetAfter.
c. What will happen to the function where call is for other Queues.
regards,
Shalini |
|
Back to top |
|
 |
clindsey |
Posted: Fri Sep 03, 2004 10:20 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
|
Back to top |
|
 |
Shalini |
Posted: Mon Sep 06, 2004 1:09 am Post subject: |
|
|
Master
Joined: 30 Apr 2002 Posts: 224 Location: India
|
Hi clindsey,
Thanks for your reply
I had review on mirrorq.c, which in detail talks about all events except GetAfter.
I am very much keen to know about GetAfter.
Please suggest.
regards,
shalini. |
|
Back to top |
|
 |
clindsey |
Posted: Mon Sep 06, 2004 9:51 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
I recommended you look at the sample to see how you can use a list to map object handles to queue names. Accessing the list during GetAfter or PutAfter is the same concept. It should be pretty easy to plug in the code you need to make this work for GetAfter as well as PutAfter.
Charlie |
|
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
|
|
|
|