117.2. marshal

在本例中,我们将一个常规文本/XML 有效负载传输到压缩的有效负载中,使用 gzip 压缩格式并将其发送名为 MY_QUEUE 的 ActiveMQ 队列。

from("direct:start").marshal().gzip().to("activemq:queue:MY_QUEUE");