Posted: Thu Feb 20, 2003 2:55 am Post subject: Message Filtering Problem
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);
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.
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