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