From users-return-30704-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Sun Apr 22 13:55:47 2012 Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DD5DB9A79 for ; Sun, 22 Apr 2012 13:55:46 +0000 (UTC) Received: (qmail 11465 invoked by uid 500); 22 Apr 2012 13:55:46 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 11395 invoked by uid 500); 22 Apr 2012 13:55:45 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 11382 invoked by uid 99); 22 Apr 2012 13:55:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Apr 2012 13:55:45 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.250.139 is neither permitted nor denied by domain of trinadhnallam@gmail.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Apr 2012 13:55:40 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SLxG3-0007H3-7z for users@activemq.apache.org; Sun, 22 Apr 2012 06:55:19 -0700 Date: Sun, 22 Apr 2012 06:55:19 -0700 (PDT) From: sreekar To: users@activemq.apache.org Message-ID: <1335102919225-4578210.post@n4.nabble.com> In-Reply-To: <1334055919363-4545278.post@n4.nabble.com> References: <1334052836582-4545137.post@n4.nabble.com> <1334055919363-4545278.post@n4.nabble.com> Subject: Re: How does the Active MQ perform search in the messages for the given MESSAGE_SELECTOR? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Team, I have tried to use the message_selector using the C++ client. But am unable to filter the messages. Without selector, i am able to recieve all the messages. (It can be assured that connection, session, destination, consumer, producer are created correctly) Things which i tried: ~~~~~~~~~~~~~~ PRODUCER - END: producer = session->createProducer (MY_QUEUE); // // In actual case i am doing the following thing in a loop, // correlationID is set using a counter variable. // TextMessage* textMessage = session->createTextMessage ( amqMessageToSend.getMessage() ); // set the unique-identifiers for the message textMessage->setCMSCorrelationID ( "23781729" ); producer->send ( textMessage, PERSISTENT); CONSUMER - END: std::string filter = "JMSCorrelationID = '23781729'"; session->createConsumer (MY_QUEUE, filter); I am sending around 5000 messages from PRODUCER-END and am recieving them successfully at CONSUMER-END when i created consumer without any selector ("JMSCorrelationID = '23781729'"); I tried with "JMSCorrelationID = '23781729'" and "CMSCorrelationID = '23781729'", but i could not recieve any messages from CONSUMER-END. Is there anything wrong with the syntax ? http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/selector/SelectorTest.java?view=markup The syntax mentioned above (for message-id) is like : "JMSMessageID = 'id:test:1:1:1:1'" In similar lines, i tried to filter with correlation-ID (which is also a JMS property that can be set by user). Any suggestions would be appreciable. Thanks & Regards, Sreekar -- View this message in context: http://activemq.2283324.n4.nabble.com/How-does-the-Active-MQ-perform-search-in-the-messages-for-the-given-MESSAGE-SELECTOR-tp4545137p4578210.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.