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 » Message Filtering Problem

Post new topic  Reply to topic
 Message Filtering Problem « View previous topic :: View next topic » 
Author Message
Reeti
PostPosted: Thu Feb 20, 2003 2:55 am    Post subject: Message Filtering Problem Reply with quote

Apprentice

Joined: 11 Jul 2002
Posts: 40

Hello:

I'm using MQSeries C++ API. While I'm sending msg to a queue, I'm setting the msgId and Correl Id. But while retrieving the msg I'm using the same technique to set the msgId and correlId and also set the GMO options. It is not retrieveing any msg. When I'm not setting any msg or correlation Id then it retrieves all messages properly.. and I hv also checked the Message and correlation Id there is the same which I'd set.

Following is the way how I've set the message and correlation id.
ImqBinary msg_new_id("XXX", 24);
mq_message.setMessageId(msg_new_id);

ImqBinary msg_corel_id("YYY", 24);
mq_message.setMessageId(msg_corel_id);

gmo.setMatchOptions(MQMO_MATCH_MSG_ID | MQMO_MATCH_CORREL_ID)

Pls. help me ASAP.

thanks and regrads
Reeti
Back to top
View user's profile Send private message
shubha6249
PostPosted: Thu Feb 27, 2003 4:01 am    Post subject: Re: Msg filtering prob. Reply with quote

Newbie

Joined: 27 Dec 2002
Posts: 4

Instead of writing the following code:

ImqBinary msg_new_id("XXX", 24);
mq_message.setMessageId(msg_new_id);

probably you should write:

char *str = "XXX" ;
ImqBinary msg_new_id(str, strlen(str));
mq_message.setMessageId(msg_new_id);

hard-coding the size of data may cause some junk characters to add at the end of the original string.

hope this helps....
Back to top
View user's profile Send private message
tillywern
PostPosted: Thu Mar 20, 2003 2:02 pm    Post subject: OR Reply with quote

Centurion

Joined: 28 Jan 2003
Posts: 109
Location: Colorado

I haven't ever seen a person getting a message based on message id and correlid at the same time. This doesn't mean it can't be done but I would try either getting based on msgid or correlid and not both to start with.

Is there a reason you need to match both either could be set to a value unique within an enterprise.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Message Filtering Problem
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.