ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » Identifying QName in GetAfter() API Exit ????

Post new topic  Reply to topic
 Identifying QName in GetAfter() API Exit ???? « View previous topic :: View next topic » 
Author Message
Shalini
PostPosted: Fri Sep 03, 2004 6:50 am    Post subject: Identifying QName in GetAfter() API Exit ???? Reply with quote

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
View user's profile Send private message Send e-mail
RogerLacroix
PostPosted: Fri Sep 03, 2004 7:31 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Shalini
PostPosted: Fri Sep 03, 2004 8:47 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
clindsey
PostPosted: Fri Sep 03, 2004 10:20 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

Shalini,

Take a look at this thread for a pointer to a sample.
http://www.mqseries.net/phpBB2/viewtopic.php?t=17179&highlight=mirrorq

Charlie
Back to top
View user's profile Send private message
Shalini
PostPosted: Mon Sep 06, 2004 1:09 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
clindsey
PostPosted: Mon Sep 06, 2004 9:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Identifying QName in GetAfter() API Exit ????
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.