activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sreekar <trinadhnal...@gmail.com>
Subject Why Message_id is disabled in ActiveMQ-CMS ?
Date Sun, 08 Apr 2012 14:26:30 GMT
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.

Mime
View raw message