Well this means that the guy on the other side should do something like this
(on the Java side)
--------------
String msgId = message.getJMSMessageID();
message.setJMSCorrelationID();
----------
and this will be the message id i got calling myMessage.getCMSMessageID()
after send. 
Am i correct?
By the way, are there any synchronizing issues to retrieve the msgId in
doing:
-----------
MapMessage* msg = session->createMapMessage();
producer->send(mapMessage);
std::string id = msg->getCMSMessageID()
-------
is it possible that the msg id will not be available?


Mittler, Nathan wrote:
> 
> Actually the CMSCorrelationID is used for this purpose.  Just have the
> guy on the other end set that before he sends back the response.
> 
> Regards,
> Nate 
> 
>> -----Original Message-----
>> From: gali_ka [mailto:[EMAIL PROTECTED] 
>> Sent: Thursday, January 10, 2008 8:42 AM
>> To: users@activemq.apache.org
>> Subject: using cms MessageID
>> 
>> 
>> Hi,
>> i'm using activemq in my c++ application. I send 
>> asynchronously a message to a consumer. Per each message 
>> sent, i store some info which will be treated accordingly to 
>> result i get. So i get a message id after calling 
>> producer.send (getCMSMessageID) and use this id to store the 
>> info. What is the procedure for getting this message id back 
>> with the reply? Does consumer needs to set it using 
>> cms::Message::setCMSMessageID? Can it be automatic?
>> Can it be part of Destination when i'm setting setCMSReplyTo ? 
>> --
>> View this message in context: 
>> http://www.nabble.com/using-cms-MessageID-tp14738310s2354p1473
>> 8310.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/using-cms-MessageID-tp14738310s2354p14740077.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to