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 empty string
jms/map-messageamqp-valuemap2 (MapMessage)nullMaps whose values fall outside the JMS restrictions must go without the annotation
amqp/mapamqp-valuemap2 (MapMessage)null 
jms/stream-messageamqp-sequencevalues4 (StreamMessage)nullMaps with members that fall outside the JMS restrictions must go without the annotation
amqp/listamqp-sequencevalues4 (StreamMessage)null 
application/java-object-streamdata-sectionbinary1 (ObjectMessage)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 

 

Internal to AMQP 1.0

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 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).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 1.0 to Internal

AMQP 1.0 MessageInternal Message
body sectionbody data typeannotation x-opt-jms-msg-typecontent-typebody objectcontent typecomments
amqp-value



nullanyanynullsee commentthis case is treated identical to the case where there is no body section (see below)
stringanycontent types listed as "common textual media types" in section 3.3.7 (Body Sections) of AMQP JMS Mapping specification (WD9)Stringcopied verbatim 
otherString"text/plain" 
mapanyanyMap<Object,Object>null 
listanyanyList<Object>null 
otheranyanyObjectcopied verbatim 
amqp-sequenceanyanyanyList<Object>

null

 
data






binary (byte[])






0 (Message)anybyte[]copied verbatim or "application/octet-stream" if null 
1 (ObjectMessage)anybyte[]copied verbatim or "application/x-java-serialized-object" if null 
2 (MapMessage)anybyte[]

copied verbatim or "application/octet-stream" if null

 
3 (BytesMessage)anybyte[]copied verbatim or "application/octet-stream" if null 
4 (StreamMessage)anybyte[]copied verbatim or "application/octet-stream" if null 
5 (TextMessage)anybyte[]copied verbatim or "application/octet-stream" if null 
other or not set

any

byte[]copied verbatim or "application/octet-stream" if null 
no body







N/A







0 (Message)anynullnull anySerializabledata-sectionbinary
1 (ObjectMessage)anynullapplication/x-java-serialized-objectIn the implementation, Serializable needs to be considered after the other non-null bodies. 
2 (MapMessage)anynullnull 
3 (BytesMessage)anynullapplication/octet-stream 
4 (StreamMessage)anynullnull 
5 (TextMessage)content types listed as "common textual media types" in section 3.3.7 (Body Sections) of AMQP JMS Mapping specification (WD9)nullcopied verbatim 
othernulltext/plain 
other or nullanynullcopy othernullamqp-valuenull copied verbatim 

Conversion issues

...

nonenullamqp-valuenull0 (Message)copied verbatim

 

 

empty body