On 07/18/2014 02:25 PM, Andreas Welchlin wrote:
Hi List,I used Hello.java from "qpid-java-amqp-1-0-client-jms-0.28.tar.gz" to send an amqp 1.0 message which contains a map to an exchange. Java Code: ------------------------------------------------------------------------------------------------------- MapMessage mapmessage = producersession.createMapMessage(); mapmessage.setStringProperty("hello","true"); mapmessage.setBoolean("mybool", true); mapmessage.setString("mystring", "hello"); mapmessage.setLong("mylong", -25L); messageProducer.send(mapmessage); ------------------------------------------------------------------------------------------------------- This works when I read the message with the java application. But when I read it with a C++ client (linked qpid 0.28 library) then it can read the message and dump it as a text but it fails decoding the map. The c++ client uses "{protocol:amqp1.0}" when the connection is created. The c++ client is able to decode map messages from other c++ senders without any problems.
It works for me when using the 0.28 version of both jms and c++ client libraries, and the c++ broker.
How are you getting the content using qpid::messaging? Are you using Message::getContentObject()?
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
