Details
Description
I am trying to receive MapMessage (in C++) generated from Java application via broker version 5.6.
The message is received and is interpreted as a MapMessage. However, it reports all properties as non existent. But I can see the properties using Wireshark.
I have the network capture, but dont find a place to paste it here.
this is the relevant code:
<pre>
// Called from the consumer since this class is a registered MessageListener.
virtual void onMessage( const Message* message ) throw() {
static int count = 0;
try
{
count++;
const MapMessage* mapMessage =
dynamic_cast<const MapMessage* >( message );
string text = "";
if( mapMessage != NULL ) {
//text = textMessage->getText();
//text = mapMessage->toString();
//text = mapMessage->getString("TEXT");
//text = mapMessage->getString("DESTINATION_ADDRESS");
text = mapMessage->getString("ORIGIN_ADDRESS");
if ( mapMessage->itemExists("TEXT") )
} else
{ text = "NOT A MAP MESSAGE!"; }
Here is a network capture of a message that my C++ program does not seem to interpret correctly.