2008/9/16 Gert Vanthienen <[EMAIL PROTECTED]>:
> James,
>
> How does trigger() sound?
> from("..").trigger("direct:log").to("something:else");
> from("direct:log")...
Not sure :). Naming is so hard! :) We might all need to sleep on this
one a bit to get a great name that seems to fit. Maybe something
longer and more explicit?
e.g.
forwardTransformedBodyTo(uri).xpath("/foo/bar")
> Btw, isn't it possible to do the same thing with an interceptor?
Yeah you could do the same thing with an interceptor - I was just
thinking that you'd maybe want a specific logging message each time
its used. I guess an analogy is, I was pondering about whats the Camel
DSL equivalent of shoving in a LOG.info("foo") inside any line of a
route definition - which doesn't affect the flow at all. You can use
the tracer or add an interceptor to always log each step; but
sometimes you just wanna insert custom messages at specific points.
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com