I am trying to convert information in a route that is in JSON format into JMS format so that I can send it to a topic.
Looking at the docs, I see:
from("activemq:My.Queue").
marshal().json(JsonLibrary.Jackson).
to("mqseries:Another.Queue");
Is it correct to interpret here that we have marshalled the message from the queue into JSON, then when sending it to the other queue, it has been converted back to a JMS message? If not, how can we achieve this conversion using the Java DSL? Further, is it possible to add key-value pairs to the JSON along the Camel route?
Thanks.