THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
AMQP 1.0 Message | AMQP 0-x Message | |||||
---|---|---|---|---|---|---|
body section | body data type | annotation x-opt-jms-msg-type | content-type | content type | comments | |
amqp-value | null | any | any | text/plain | see comment | this case is treated identical to the case where there is no body section (see below) |
string | any | any | text/plain | |||
map | any | any | jms/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, MessageConversionException is thrown | ||
list | any | any | jms/stream-message or amqp/list | if list items of simple types(string, boolean, double, float, byte[] (Binary), null, byte, short, integer, long ), otherwise conversion to "amqp/list" is attempted, otherwise MessageConversionException is thrown | ||
other | any | any | MessageConversionException is thrown | |||
amqp-sequence | see comments | any | any | jms/stream-message | if amqp-sequence section values of simple types(string, boolean, double, float, byte[] (Binary), null, byte, short, integer, long ), otherwise conversion to "amqp/list" is attempted, otherwise MessageConversionException is thrown | |
data | binary (bytes[]) | 0 (Message) | any | application/octet-stream | ||
1 (ObjectMessage) | any | application/java-object-stream | ||||
2 (MapMessage) | any | jms/map-message or amqp/map or application/octet-stream
| The content types jms/map-message and amqp/map are preserved. Otherwise, application/octet-stream | |||
3 (BytesMessage) | any | application/octet-stream | ||||
4 (StreamMessage) | any | jms/stream-message or amqp/list or application/octet-stream | The content types jms/stream-message or amqp/list are preserved. Otherwise, application/octet-stream | |||
5 (TextMessage) | any | text/plain | ||||
other or not set | content types listed as "common textual media types" in section 3.3.7 (Body Sections) of AMQP JMS Mapping specification (WD9) | text/plain | ||||
jms/map-message or amqp/map | jms/map-message or amqp/map | the content type is preserved on converted message | ||||
jms/stream-message or amqp/list | jms/stream-message or amqp/list | the content type is preserved on converted message | ||||
application/x-java-serialized-object or application/java-object-stream | application/java-object-stream | |||||
other or not set | application/octet-stream | |||||
no body | N/A | 0 (Message) | anytext | /plainnot set | empty body | |
1 (ObjectMessage) | any | application/java-object-stream | body will contain serialized null | |||
2 (MapMessage) | any | jms/map-message | body will contain a serialized empty map | |||
3 (BytesMessage) | any | application/octet-stream | empty body | |||
4 (StreamMessage) | any | jms/stream-message | empty body | |||
5 (TextMessage) | any | text/plain | empty body | |||
other or not set | content types listed as "common textual media types" in section 3.3.7 (Body Sections) of AMQP JMS Mapping specification (WD9) | text/plain | empty body | |||
jms/map-message or amqp/map | jms/map-message | body will contain a serialized empty map | ||||
jms/stream-message or amqp/list | jms/stream-message | empty body | ||||
application/x-java-serialized-object or application/java-object-stream | application/java-object-stream | body will contain serialized null | ||||
application/octet-stream | application/octet-stream | empty body | ||||
othertext | /plainnot set | empty body |
AMQP 0-
...
x to AMQP 1.0
AMQP 0-8...0-9-1x | AMQP 1.0 | comments | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
content type | body section | body data type | annotation x-opt-jms-msg-type | content-type | ||||||
text/plaincontent 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) | text/plaincopied verbatim | TODO if body is empty ... ?text/xmlthe amqp-value will contain the encoded empty string | |||||
jms/map-message | amqp-value | stringmap | 52 ( | TextMessageMapMessage) | text/xml | TODO | ||||
jms/map-message | ||||||||||
null | Maps whose values fall outside the JMS restrictions must go without the annotation | |||||||||
amqp/map | amqp-value | map | 2 (MapMessage) | null | amqp/map | |||||
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 | ||||||
other or none without body | amqp-value | null | 0 (Message) | null |
Conversion issues
This section summarises existing conversion issues
...