If you want to send a single event in a MapMessage, then you must add all the data elements to the MapMessage with pre-decided keys. If you want to send multiple or bulk events as part of a single message, then the message must contain one key containing a byte array value. The byte array will be a
List<Map<String,Map<String,Object>>> as mentioned in
ObjectMessage with multiple events.