Jonathan Robie wrote:
Suppose I have clients in Java JMS, Python, and C++, and they need to
exchange maps.
Is there currently a good way to do this? I can't quite see how.
Jonathan
There are ways to do this in each language. It's very easy in Python as
maps are represented as dictionaries. The Codec class is used to encode
and decode the various AMQP types.
In C++, the Buffer class can be used to encode and decode a subset of
the AMQP types. The FieldTable class implements maps. For the C++
client, there is a non-obvious conversion from string to Buffer that is
needed in order to encode/decode AMQP types in message bodies.
In Java, there is an encoder/decoder, the details of which you will need
to get from someone else.
If it's helpful, I can supply examples in both Python and C++.
-Ted