57.5. 使用 XSLT 端点
以下是使用 XSLT 模板公式为 InOut 消息交换的消息的响应(其中有一个 JMSReplyTo
标头)的示例。
from("activemq:My.Queue"). to("xslt:com/acme/mytransform.xsl");
from("activemq:My.Queue").
to("xslt:com/acme/mytransform.xsl");
如果要使用 InOnly 并消耗信息并将其发送到另一个目的地,您可以使用以下路由:
from("activemq:My.Queue"). to("xslt:com/acme/mytransform.xsl"). to("activemq:Another.Queue");
from("activemq:My.Queue").
to("xslt:com/acme/mytransform.xsl").
to("activemq:Another.Queue");