Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

AMQP 0-xInternal Messagecomments
content typebody objectcontent-type
content types listed as "common textual media types" in section 3.3.7 (Body Sections) of AMQP JMS Mapping specification (WD9)Stringcopied verbatimif body is empty the body object will contain an empty String
jms/map-messageMapnullif body is empty, the body object will contain an empty Map
amqp/mapMapnullif body is empty, the body object will contain an empty Map
jms/stream-messageListnullif body is empty, the body object will contain an empty List
amqp/listListnullif body is empty, the body object will contain an empty List
application/java-object-streambyte[]application/x-java-serialized-objectif body is empty, the body object will contain an empty byte array
application/x-java-serialized-objectbyte[]application/x-java-serialized-objectif body is empty, the body object will contain an empty byte array
application/octet-streambyte[]application/octet-streamif body is empty, the body object will contain an empty byte array
otherbyte[] or nullcopied verbatimif body is empty, the body object will be set to null

Internal to AMQP 0-x

InternalAMQP 0-xcomments
content typebodycontent-type
anyStringtext/plainif body is null, content will be empty
anyListjms/stream-message or  amqp/listif list items of simple types(string, boolean, double, float, byte[] (Binary), null, byte, short, integer, long ), otherwise conversion to "amqp/list" is attempted. Otherwise content is converted as per Serializable.
anybyte[]copied verbatim if not null, otherwise application/octet-stream 
anyMapjms/map-message or amqp/map

if keys' length<255 and values of simple types (string, boolean, double, float, binary(byte[]), null, byte, short, integer, long ), the  "jms/map-message " format is used. If keys' length<255 but non simple type value is used, than "amqp/map" format is used. Otherwise content is converted as per Serializable.

anySerializableapplication/java-object-streamIn the implementation, Serializable needs to be considered after the other non-null bodies.
othernullcopied verbatim 

Conversion issues

This section summarises existing conversion issues

...