67.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");