Send:

Message message = session.createMapMessage();
message.setStringProperty("abc", "xyz");
producer.send(message);

Receive:
if(msg instanceof MapMessage){
    Enumeration<String> names = msg.getPropertyNames();
    while(names.hasMoreElements()){
            String name = names.nextElement();
            System.out.println("name:" + name + ", value:" +
msg.getObjectProperty(name));
    }
}

Output:
name:breadcrumbId, value:ID:mypc-47737-1370569760531-1:1:1:1:9
name:CamelJmsDeliveryMode, value:2
name:abc, value:xyz

The message content has changed!
How to get the original message content?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Why-the-JMS-MapMessage-change-after-transfer-through-camel-tp5733975.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to