Here are the examples of the java api class org.apache.activemq.artemis.jms.tests.message.SimpleJMSMapMessage taken from open source projects.
1. ForeignMapMessageTest#createForeignMessage()
Project: activemq-artemis
File: ForeignMapMessageTest.java
File: ForeignMapMessageTest.java
@Override protected Message createForeignMessage() throws Exception { SimpleJMSMapMessage m = new SimpleJMSMapMessage(); log.debug("creating JMS Message type " + m.getClass().getName()); m.setBoolean("boolean1", true); m.setChar("char1", 'c'); m.setDouble("double1", 1.0D); m.setFloat("float1", 2.0F); m.setInt("int1", 3); m.setLong("long1", 4L); m.setObject("object1", obj); m.setShort("short1", (short) 5); m.setString("string1", "stringvalue"); return m; }