Versions Compared

Key

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

...

AMQP 0-xAMQP 1.0comments
content typebody sectionbody data typeannotation x-opt-jms-msg-typecontent-type
content types listed as "common textual media types" in section 3.3.7 (Body Sections) of AMQP JMS Mapping specification (WD9)amqp-valuestring5 (TextMessage)copied verbatimif body is empty the amqp-value will contain the encoded an empty string
jms/map-message
or amqp/map
amqp-valuemap2 (MapMessage)null

if body is empty the amqp-value will contain an empty map.

Maps whose values fall outside the JMS restrictions must go without the annotation

amqp/mapamqp-valuemap2 (MapMessage)null 
jms/stream-message
or amqp/list 
amqp-sequencevalues4 (StreamMessage)null

if body is empty the amqp-sequence will be empty.

  List with items

Maps with members

that fall outside the JMS restrictions must go without the annotation

amqp/listamqp-sequencevalues4 (StreamMessage)null 
application/java-object-stream
data-sectionbinary1 (ObjectMessage)or application/x-java-serialized-object application/x-java-serialized-objectdata-sectionbinary1 (ObjectMessage)application/x-java-serialized-object 
application/octet-streamdata-sectionbinary3 (BytesMessage)application/octet-stream 
other with bodydata-sectionbinarynullcopied verbatim 
none with bodydata-sectionbinarynullnull 
other without bodydata-sectionempty binarynullcopied verbatim 
none without bodyamqp-valuenull0 (Message)null 

...

InternalAMQP 1.0comments
content typebodybody sectionbody data typeannotation x-opt-jms-msg-typecontent-type
anyStringamqp-valuestring5 (TextMessage)copied verbatim if not null, otherwise text/plainif body is empty the amqp-value will contain the encoded an empty string
anyListamqp-sequencevalues4 (StreamMessage)nullLists with members that fall outside the JMS restrictions must go without the annotation
anybyte[]data-sectionbinary3 (BytesMessage)copied verbatim if not null, otherwise application/octet-stream 
anyMapamqp-valuemap2 (MapMessage)nullMaps whose values fall outside the JMS restrictions must go without the annotation
anySee commentamqp-valuevaluenullcopied verbatimFor all Java types that are expressible with AMQP 1.0 primitive types (eg. Java Date as AMQP 1.0 Timestamp).
anySerializabledata-sectionbinary1 (ObjectMessage)application/x-java-serialized-objectIn the implementation, Serializable needs to be considered after the other non-null bodies.
othernullamqp-valuenull copied verbatim 

...

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 is null.will contain an empty String
jms/map-messageMapnullif body is empty, the body object will contain an empty mapMap
amqp/mapMapnullif body is empty, the body object will contain an empty mapMap
jms/stream-messageListnullif body is empty, the body object will contain an empty listList
amqp/listListnullif body is empty, the body object will contain an empty listList
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
other with bodybyte[] or nullcopied verbatim if body is empty, the body object will be set to null
none with bodybyte[] or nullnull 
other without bodynullcopied verbatim 
none without bodynullnull if body is empty, the body object will be set to null

Conversion issues

This section summarises existing conversion issues

...