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 » Queue Name in PutAfter Event

Post new topic  Reply to topic
 Queue Name in PutAfter Event « View previous topic :: View next topic » 
Author Message
Priya Raghunath
PostPosted: Wed Feb 16, 2005 10:00 pm    Post subject: Queue Name in PutAfter Event Reply with quote

Newbie

Joined: 24 Jan 2005
Posts: 5

Hello,

I am trying to program an API Exit program for IBM MQ Series 5.3 CSD5 version. I am trying trigger an PutAfter event on a specific Queue for a specific Queue Manager.

The problem is, when the event gets triggered I am unable to identify for which queue the event has been triggered when I put a message.

Irrespective the message dropped in q1, q2 q3, .... qn the event will trigger and the code in the PutAfter function will get executed but I need to restrict it to a single Queue.

Kindly post your comments.

Thanks,
Priya
Back to top
View user's profile Send private message
Jeeva
PostPosted: Thu Feb 17, 2005 7:17 am    Post subject: Queue Name in PutAfter Event Reply with quote

Novice

Joined: 16 Feb 2005
Posts: 12
Location: India

API exit is set in Queue manager level and we cannot restrict that to Specific Queue level.

But there are work arounds to achieve that, by using Namelist. Create a namelist with the Queues for which you need to trigger the PutAfter Event. then access the namelist in your API Exit code.


Jeeva
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Feb 17, 2005 7:19 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I don't think that answers the question.

The question appears to be "When my code enters PutAfter, how do I determine which queue has caused the exit to fire?" - which queue has just had a message put to it?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Feb 17, 2005 7:58 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Go take a look at the mirrorq.c programs at:

http://www.developer.ibm.com/tech/sampmq.html

They cache the handle of the queue at open time which you can then use to figure out which queue at put time.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Priya Raghunath
PostPosted: Thu Feb 17, 2005 10:03 pm    Post subject: mirrorq doesn't help Reply with quote

Newbie

Joined: 24 Jan 2005
Posts: 5

Hi,

Thanks for your kind quick response.

Actually mirroq is a typical program that makes a manual repository of the custom queue names. But is there any MQ Series parameter that informs me that "Yes, This queue has triggered the event",

for example when you look at the OpenAfter function signature it has function parameter called pMQOD i.e the structure member pMQOD->ObjectName will give me for which queue the OpenAfter is being triggered, do we have any similar thing for PutAfter, GetAfter.

Thanks,
Priya
Back to top
View user's profile Send private message
bob_buxton
PostPosted: Fri Feb 18, 2005 1:39 am    Post subject: Reply with quote

Master

Joined: 23 Aug 2001
Posts: 266
Location: England

As well as the object name you will also have the connection and object handles in the Open After call. If you have the same pair of handles in subsequent Put and Get the request is for the same queue.

There is no MQ function other than MQINQ that will tell you what the object name associated with a handle is.
_________________
Bob Buxton
Ex-Websphere MQ Development
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 » Queue Name in PutAfter Event
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.