Red Hat AMQ 6
As of February 2025, Red Hat is no longer supporting Red Hat AMQ 6. If you are using AMQ 6, please upgrade: Migrating to AMQ 7.Ce contenu n'est pas disponible dans la langue sélectionnée.
3.5. JMS MapMessage Types
Qpid supports the Java JMS
MapMessage
interface, which provides support for maps in messages. The following code shows how to send a MapMessage
in Java JMS.
Example 3.5. Sending a Java JMS MapMessage
The following table shows the datatypes that can be sent in a
MapMessage
, and the corresponding datatypes that will be received by clients in Python or C++.
Java Datatype | Python | C++ |
---|---|---|
boolean | bool | bool |
short | int | long | int16 |
int | int | long | int32 |
long | int | long | int64 |
float | float | float |
double | float | double |
java.lang.String | unicode | std::string |
java.util.UUID | uuid | qpid::types::Uuid |
java.util.Map[a] | dict | Variant::Map |
java.util.List | list | Variant::List |
[a]
In Qpid, maps can nest. This goes beyond the functionality required by the JMS specification.
|