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 » How to find the Queue which triggers the delivery report

Post new topic  Reply to topic
 How to find the Queue which triggers the delivery report « View previous topic :: View next topic » 
Author Message
yasaboy
PostPosted: Thu Jan 15, 2015 7:45 pm    Post subject: How to find the Queue which triggers the delivery report Reply with quote

Voyager

Joined: 23 Jun 2014
Posts: 90

Hi,

I have enabled a delivery report option in TEST.Q1 , TEST.Q2 and if the messages added to that queue is delivered TEST.Q3 receives a delivery report.

So we add a callback to TEST.Q3 to get the messages in the delivery queue. What is the method to determine which queues (Q1 or Q2) delivery report is received by the Q3 callback ?

Is there any field in MQMD that we can use to add the name of the output queue (Q1,Q2) when we set the m_Md.ReplyToQ and m_Md.ReplyToQMgr ?
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jan 16, 2015 5:07 am    Post subject: Re: How to find the Queue which triggers the delivery report Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

yasaboy wrote:
I have enabled a delivery report option in TEST.Q1 , TEST.Q2 and if the messages added to that queue is delivered TEST.Q3 receives a delivery report.


Which queue option is that? I thought a Confirmation Of Delivery report was a message option not a queue option. Like Confirmation Of Arrival.

yasaboy wrote:
So we add a callback to TEST.Q3 to get the messages in the delivery queue. What is the method to determine which queues (Q1 or Q2) delivery report is received by the Q3 callback ?


In my world, when a message with COD (or COA) set is consumed (or placed on the queue), the Report message is sent to the ReplyToQ on the message.

yasaboy wrote:
Is there any field in MQMD that we can use to add the name of the output queue (Q1,Q2) when we set the m_Md.ReplyToQ and m_Md.ReplyToQMgr ?


Yes, those fields. I don't know how you're setting it at the queue level so I can't comment really.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
yasaboy
PostPosted: Sun Jan 18, 2015 8:40 pm    Post subject: Re: How to find the Queue which triggers the delivery report Reply with quote

Voyager

Joined: 23 Jun 2014
Posts: 90

yasaboy wrote:
Is there any field in MQMD that we can use to add the name of the output queue (Q1,Q2) when we set the m_Md.ReplyToQ and m_Md.ReplyToQMgr ?


Yes, those fields. I don't know how you're setting it at the queue level so I can't comment really.[/quote]

For the messages in Q1 and Q2 we set m_Md.ReplyToQ=Q3 and m_Md.ReplyToQMgr=QmgrName.

So as expected when some message at Q1 or Q2 is consumed the delivery report is received at Q3. If we take the messages of Q3 and MQGMO->ResolvedQName it gives Q3. That is also correct.

But what I want here is when message received at Q3 I want to determine the original queue which prompted this reply message at Q3, which is either Q1 or Q2 . Is there anyway of getting this ?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Jan 19, 2015 5:56 am    Post subject: Re: How to find the Queue which triggers the delivery report Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9399
Location: US: west coast, almost. Otherwise, enroute.

yasaboy wrote:

But what I want here is when message received at Q3 I want to determine the original queue which prompted this reply message at Q3, which is either Q1 or Q2 . Is there anyway of getting this ?

AFIK, there is no method inbuilt into the MQ product to identify the name of the queue from where a message is consumed.

You (your developer) could place the source-queue name in an unused MQMD field or as part of the message body.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jan 19, 2015 9:56 am    Post subject: Re: How to find the Queue which triggers the delivery report Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

bruce2359 wrote:
yasaboy wrote:

But what I want here is when message received at Q3 I want to determine the original queue which prompted this reply message at Q3, which is either Q1 or Q2 . Is there anyway of getting this ?

AFIK, there is no method inbuilt into the MQ product to identify the name of the queue from where a message is consumed.

You (your developer) could place the source-queue name in an unused MQMD field or as part of the message body.

Don't do this. Use the message id / correlation Id. Set the corresponding flag on the original message and the response correlation Id will tell you which message the acknowledgement is for. Now I would hope that your developer can determine on hand of the sent message where he originally sent it to...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » How to find the Queue which triggers the delivery report
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.