Versions Compared

Key

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

...

AMQP type

java type

Target mime-type

Comment

string

String

text/plain

 

list of primitive types (double,float,string,byte[],boolean,byte,short,int,long, char)

java.util.List

jms/stream-message

 

map with primitive value types (double,float,string,byte[],boolean,byte,short,int,long, char)

java.util.Map

jms/map-message

Should null be included into the allowed types?

list

java.util.List

amqp/list

 

map

java.util.Map

amqp/map

 

binary

java.lang.Serializable

application/java-object-stream

 

binary

byte[]

application/octet-stream

 
AMQP 1.0AMQP 0-8
content-typex-opt-jms-msg-typebody typecontent-typebodyCommentsImplemented
---application/octet-stream-  
--dataapplication/octet-streamcontent of data value  
*3dataapplication/octet-stream-  
*3-application/octet-stream-  
application/x-java-serialized-object-dataapplication/java-object-streamcontent of data value  
application/x-java-serialized-object--application/java-object-stream-  
*1dataapplication/java-object-streamcontent of data value  
*1-application/java-object-stream-  
--amqp-sequence (if simple type is used )jms/stream-messagelist with amqp-sequence values  
-4amqp-sequence (if simple type is used)jms/stream-messagelist with amqp-sequence values  
-4-jms/stream-messageempty list  
--/4amqp-sequence (if non simple type is use)  throw MessageConversionException 
--amqp-value with value of map with string keys (of length <255) and simple type values (string, boolean, long, integer, short, byte, float, double, byte[])amqp/map0-10 encoded map  
 -amqp-value with value of map with either non string keys or non simple values, or string key with length > 255  throw MessageConversionException 
-2-amqp/mapempty 0-10 encoded map  
 2amqp-value with value of map with either non string keys or non simple values, or string key with length > 255  throw MessageConversionException 
-5-text/plain-  
text/plain--text/plain-  
--amqp vallue with string or nulltext/plainstring value  
*5amqp vallue with string or nulltext/plainstring value  
text/*-datatext/*data bytes as string  
application/xml-dataapplication/xmldata bytes as string  
application/*+xml-dataapplication/*+xmldata bytes as string  
application/xml-dtd-dataapplication/xml-dtddata bytes as string  
application/json-dataapplication/jsondata bytes as string  
application/*+json-dataapplication/*+jsondata bytes as string  
application/javascript-dataapplication/javascriptdata bytes as string  
application/ecmascript-dataapplication/ecmascriptdata bytes as string  
***  throw MessageConversionException 

 

 

 

At the moment the conversion into AMQP 1-0 might end-up in unexpected message types, for example, stream message can be received as object message and map message can be received as object message. It seems the same applies to conversion from AMQP 1-0 into AMQP 0-x

...