Is it possible to use a wiretap to log message in a route without having to
modify the sender?  I have worked through the service mix tutorials where
both an EIP and Camel wiretap are used.  In both cases they modify the
sender to send to the wiretap instead of sending to the receiver.  I'm using
ServiceMix 3.2.1.

http://servicemix.apache.org/26-beginner-exercise.html
http://servicemix.apache.org/26-beginner-exercise.html 

Instead of:
      from("jbi:service:urn:servicemix:tutorial:wiretap")
         .convertBodyTo(DOMSource.class)
         .to("jbi:endpoint:urn:servicemix:tutorial:jms:myQueue",
"jbi:endpoint:urn:servicemix:tutorial:file:sender");

I was hoping that I could grap the message coming off the poller directly.

      from("jbi:endpoint:urn:servicemix:tutorial:file:poller")
         .convertBodyTo(DOMSource.class)
         .to("jbi:endpoint:urn:servicemix:tutorial:jms:myQueue",
"jbi:endpoint:urn:servicemix:tutorial:file:sender");

Any input would be most appreciated.
-- 
View this message in context: 
http://www.nabble.com/Wiretap-without-modifying-the-sender-tp18534360p18534360.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to