|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to identify the report message in a queue |
« View previous topic :: View next topic » |
Author |
Message
|
ramesh_polaris_mqseries |
Posted: Thu Dec 06, 2007 10:57 pm Post subject: How to identify the report message in a queue |
|
|
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 |
|
 |
Gaya3 |
Posted: Fri Dec 07, 2007 2:01 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Fri Dec 07, 2007 2:01 am Post subject: Re: How to identify the report message in a queue |
|
|
 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 |
|
 |
RogerLacroix |
Posted: Fri Dec 07, 2007 9:36 am Post subject: Re: How to identify the report message in a queue |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|