I was trying to use a map message from a C++ program. It appears to send a message but none of the fields from the map. I tested this by modifying the vs2005-activemq-example to send a MapMessage in the producer:
MapMessage *message=session->createMapMessage(); message->setInt("MsgNum",ix); message->setString("Thread",threadIdStr.c_str()); and getting one in the consumer: const MapMessage * mapMessage= dynamic_cast<const MapMessage *>(message); if (mapMessage!=NULL) { int num=mapMessage->getInt("MsgNum"); printf("Msg #%d from thread%s\n",num,mapMessage->getString("Thread").c_str()); } else { printf("Not a map message\n"); } Exception was thrown whenever the getInt was called. I'm using Visual Studio 2005 to build it. -- View this message in context: http://www.nabble.com/AMQ-CPP-MapMessage-tp15299238s2354p15299238.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.