[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can we get/set the message body in an Artemis transformer?

The Transformer interface uses the Message class. It is very easy to get/set
message properties. See for instance [1].

The Message class only contains deprected methods to get the message body
(getBodyBuffer() and getBodyInputStream()) and nothing to set it.

How can we set/get the message body from a transformer?

Here is a typical use case: the body contains a binary payload that needs to
be decoded and replaced by an equivalent JSON payload.