378.3. 使用 XSLT 端点
以下格式是使用 XSLT 模板为 InOut 消息交换发送响应(其中有 JMSReplyTo
标头)的 expample。
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");