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 » General Discussion » APIExit-In MQPUT Putbefore how can u get2know the Queuename

Post new topic  Reply to topic
 APIExit-In MQPUT Putbefore how can u get2know the Queuename « View previous topic :: View next topic » 
Author Message
TKiranKumar
PostPosted: Tue Aug 24, 2004 5:23 am    Post subject: APIExit-In MQPUT Putbefore how can u get2know the Queuename Reply with quote

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
View user's profile Send private message
clindsey
PostPosted: Tue Aug 24, 2004 6:13 am    Post subject: Reply with quote

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
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 » General Discussion » APIExit-In MQPUT Putbefore how can u get2know the Queuename
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.