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 999A09ECE for ; Sun, 8 Apr 2012 14:27:00 +0000 (UTC) Received: (qmail 92995 invoked by uid 500); 8 Apr 2012 14:27:00 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 92891 invoked by uid 500); 8 Apr 2012 14:26:59 -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 92871 invoked by uid 99); 8 Apr 2012 14:26:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Apr 2012 14:26:59 +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, 08 Apr 2012 14:26:51 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SGt4Y-0008A9-PK for users@activemq.apache.org; Sun, 08 Apr 2012 07:26:30 -0700 Date: Sun, 8 Apr 2012 07:26:30 -0700 (PDT) From: sreekar To: users@activemq.apache.org Message-ID: <1333895190727-4541043.post@n4.nabble.com> Subject: Why Message_id is disabled in ActiveMQ-CMS ? 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, Currently i believe the way to use the message_id is : call *setCMSMessageID (std::string& message_id)* while sending the message and call *getCMSMessageID ()* to retrieve the *message_id* value from the message. I cannot use the message_id in the above manner. Are there any more (direct ways....i.e not through the properties) to do this ? Found the following in the Active MQ CMS code: --------------------- virtual std::string getCMSMessageID() const { try{ return wireformat::openwire::marshal::BaseDataStreamMarshaller::toString( this->getMessageId().get() ); } AMQ_CATCH_ALL_THROW_CMSEXCEPTION() } virtual void setCMSMessageID( const std::string& id AMQCPP_UNUSED ) {} --------------------- Can anyone explain the reason why *setCMSMessageID* is not setting the user-specified value ? Is there any specific reason to omit it (the defnintion) ? Thanks & Best Regards, Sreekar -- View this message in context: http://activemq.2283324.n4.nabble.com/Why-Message-id-is-disabled-in-ActiveMQ-CMS-tp4541043p4541043.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.