On Thu, Aug 16, 2012 at 1:11 PM, Joe San <codeintheo...@gmail.com> wrote: > As a follow up on the Chapter 3 from Camel in Action: > > from("file://rider/inbox") > .to("xslt://camelinaction/transform.xsl") > .to("activemq:queue:transformed") > > Can I refer the xslt as an EndPoint? or it is better referred as a > Component? >
In the example above its all uris for Camel endpoints. A Camel component is a factory for creating endpoints. You can also create the endpoints yourself, eg just using java code, and do a new XsltEndpoint, and then configure the endpoint using getter/setters. The component though can do all this by just that string uri "xslt://camelinaction/transform.xsl". The part before the first colon (eg scheme) is the component name. So its the xstl component. The xslt component then parses the remaninder of the String and creates the endpoint, and configure it accordingly. page 18-19 in the book have some details as well. > Regards, > Jothi -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen