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 Java / JMS » How to identify the report message in a queue

Post new topic  Reply to topic
 How to identify the report message in a queue « View previous topic :: View next topic » 
Author Message
ramesh_polaris_mqseries
PostPosted: Thu Dec 06, 2007 10:57 pm    Post subject: How to identify the report message in a queue Reply with quote

Newbie

Joined: 06 Dec 2007
Posts: 1

Hi,
Is there any other way where we can find out whether the message in the queue is normal message are report message.My requirement is while sending the message to mq system we will set the report option as COA/COD.Once the queue manager sends the report message with data, we need to identify whether the message is COA/COD.

Regards
Ramesh.G
Back to top
View user's profile Send private message
Gaya3
PostPosted: Fri Dec 07, 2007 2:01 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi

COA/COD : its more over an acknowledgment.

So coming back how to identify

copy message id to correlation id of the acknowledgment messages

by comparing the msg id of the sent msg and correlation id of the recvd msg, we can differentiate original msgs and acknowledgment msgs.


Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Dec 07, 2007 2:01 am    Post subject: Re: How to identify the report message in a queue Reply with quote

Grand High Poobah

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

ramesh_polaris_mqseries wrote:
Is there any other way where we can find out whether the message in the queue is normal message are report message.


Examine the Message Type and Feedback fields in the MQMD, where this information is stored.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Fri Dec 07, 2007 9:36 am    Post subject: Re: How to identify the report message in a queue Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

ramesh_polaris_mqseries wrote:
Is there any other way where we can find out whether the message in the queue is normal message are report message.

Here you go:
Code:
if (msg.feedback==MQC.MQFB_COA)
{
   // Yup COA message
}
else if (msg.feedback==MQC.MQFB_COD)
{
   // Yup COD message
}
else if (msg.feedback==MQC.MQFB_QUIT)
{
   // Time to go bye, bye.
}
else
{
   // a regular message
}


Hope that helps.

Regards,
Roger Lacroix
Capitalware Inc.

}
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » How to identify the report message in a queue
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.