I am sending JSON messages to an ActiveMQ server. I am trying to use JMS Transformation to convert a JSON encoded object into a true Java object in the hope of being able to use selectors in the data inside.
Here is a link to the Stomp and Message Transformation documentation. Here is a link to a discussion of the patch, where someone shows an example of a legal JSON object
The format of the JSON objects I submit (in fairly printed form) is similar to the following:
{
"msg": {
"flag1": "value1",
"flag2": "value2"
}
}
Messages arrive in the message queue, but with the transform-error property set to "msg: msg".
json activemq stomp
Phillip whelan
source share