THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
AMQP 0-x | AMQP 1.0 | comments | |||
---|---|---|---|---|---|
content type | body section | body data type | annotation x-opt-jms-msg-type | content-type | |
content types listed as "common textual media types" in section 3.3.7 (Body Sections) of AMQP JMS Mapping specification (WD9) | amqp-value | string | 5 (TextMessage) | copied verbatim | if body is empty the amqp-value will contain the encoded empty string |
jms/map-message | amqp-value | map | 2 (MapMessage) | null | Maps whose values fall outside the JMS restrictions must go without the annotation |
amqp/map | amqp-value | map | 2 (MapMessage) | null | |
jms/stream-message | amqp-sequence | values | 4 (StreamMessage) | null | Maps with members that fall outside the JMS restrictions must go without the annotation |
amqp/list | amqp-sequence | values | 4 (StreamMessage) | null | |
application/java-object-stream | data-section | binary | 1 (ObjectMessage) | application/x-java-serialized-object | |
application/x-java-serialized-object | data-section | binary | 1 (ObjectMessage) | application/x-java-serialized-object | |
application/octet-stream | data-section | binary | 3 (BytesMessage) | application/octet-stream | |
other with body | data-section | binary | null | copied verbatim | |
none with body | data-section | binary | null | null | |
other without body | data-section | empty binary | null | copied verbatim | |
none without body | amqp-value | null | 0 (Message) | null |
Internal to AMQP 1.0
Internal | AMQP 1.0 | comments | ||||
---|---|---|---|---|---|---|
content type | body | body section | body data type | annotation x-opt-jms-msg-type | content-type | |
any | String | amqp-value | string | 5 (TextMessage) | copied verbatim if not null, otherwise text/plain | if body is empty the amqp-value will contain the encoded empty string |
any | List | amqp-sequence | values | 4 (StreamMessage) | null | Lists with members that fall outside the JMS restrictions must go without the annotation |
any | byte[] | data-section | binary | 3 (BytesMessage) | copied verbatim if not null, otherwise application/octet-stream | |
any | Map | amqp-value | map | 2 (MapMessage) | null | Maps whose values fall outside the JMS restrictions must go without the annotation |
any | See comment | amqp-value | value | null | copied verbatim | For 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). |
any | Serializable | data-section | binary | 1 (ObjectMessage) | application/x-java-serialized-object | In the implementation, Serializable needs to be considered after the other non-null bodies. |
other | null | amqp-value | null | copied verbatim |
AMQP 1.0 to Internal
AMQP 1.0 Message | Internal Message | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
body section | body data type | annotation x-opt-jms-msg-type | content-type | body object | content type | comments | ||||
amqp-value | null | any | any | null | see comment | this case is treated identical to the case where there is no body section (see below) | ||||
string | any | content types listed as "common textual media types" in section 3.3.7 (Body Sections) of AMQP JMS Mapping specification (WD9) | String | copied verbatim | ||||||
other | String | "text/plain" | ||||||||
map | any | any | Map<Object,Object> | null | ||||||
list | any | any | List<Object> | null | ||||||
other | any | any | Object | copied verbatim | ||||||
amqp-sequence | any | any | any | List<Object> | null | |||||
data | binary (byte[]) | 0 (Message) | any | byte[] | copied verbatim or "application/octet-stream" if null | |||||
1 (ObjectMessage) | any | byte[] | copied verbatim or "application/x-java-serialized-object" if null | |||||||
2 (MapMessage) | any | byte[] | copied verbatim or "application/octet-stream" if null | |||||||
3 (BytesMessage) | any | byte[] | copied verbatim or "application/octet-stream" if null | |||||||
4 (StreamMessage) | any | byte[] | copied verbatim or "application/octet-stream" if null | |||||||
5 (TextMessage) | any | byte[] | 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) | any | null | null | any | Serializable | data-section | binary | |
1 (ObjectMessage) | any | null | application/x-java-serialized-object | In the implementation, Serializable needs to be considered after the other non-null bodies. | ||||||
2 (MapMessage) | any | null | null | |||||||
3 (BytesMessage) | any | null | application/octet-stream | |||||||
4 (StreamMessage) | any | null | null | |||||||
5 (TextMessage) | content types listed as "common textual media types" in section 3.3.7 (Body Sections) of AMQP JMS Mapping specification (WD9) | null | copied verbatim | |||||||
other | null | text/plain | ||||||||
other or null | any | null | copy | other | null | amqp-value | null | copied verbatim |
Conversion issues
...
none | null | amqp-value | null | 0 (Message) | copied verbatim |
empty body |