I know why I was wrong.
The code should be:
Send:
MapMessage message = session.createMapMessage();
message.setString("abc", "xyz");

Receive:
Enumeration mapNames = mapMsg.getMapNames();
while(mapNames.hasMoreElements()){
  String name = (String) mapNames.nextElement();
  System.out.println("name:" + name + ", value:" + mapMsg.getObject(name));
}

Now everything is OK.
 



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

Reply via email to