|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
APIExit-In MQPUT Putbefore how can u get2know the Queuename |
« View previous topic :: View next topic » |
Author |
Message
|
TKiranKumar |
Posted: Tue Aug 24, 2004 5:23 am Post subject: APIExit-In MQPUT Putbefore how can u get2know the Queuename |
|
|
Novice
Joined: 14 May 2004 Posts: 15
|
Hi all,
it would be great if anybody could offer me a suggestion.
I have developed an API Exit that encrypts data in the MQPUT PutBefore call so that when the message lies on the Queue, it is encrypted.
My objective is to selectively encrypt only those messages written onto a particular queue of the Queuemanager . Since the API exit is configured on the Queuemanager, as of now all messages written to any queue of the same QMGR are tending to be encrypted
I have tried using the PPMQPMO 's ppPutMsgOpts ->ResolvedQName but in the PUTBEFORE the Queuename is empty.
In the PUTAFTER the Queuename is resolved and contains the appropriate value.
USing the MQPUT PutBefore call only is there any way of knowing which remote queue is the message intended for OR which is the Local queue
the message is being PUT into.
Regards,
kiran |
|
Back to top |
|
 |
clindsey |
Posted: Tue Aug 24, 2004 6:13 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
You have to associate the queue handle with the queue name during the open before or open after call, e.g. maintain a list of open queues. When you get to the put or get before or after, do a lookup by handle and retrieve the name.
I can make this very easy for you. Go to this site, http://www.developer.ibm.com/tech/sampmq.html and download mirrorq_1_win.zip. Look at the source code, mirrorq.c and you will see exactly this technique in the sample, plus how to maintain the queues of interest by putting them in a namelist.
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
|
|
|
|