Assuming aap queue is the source and the place where messages landup which
you would like to log and forward it for processing then my route would be 

from("activemq:queue:aap")
    .wireTap("direct:log")
    .to("direct:processRequest")

// this is the tapped route
from("direct:log")
    ..... // code for appropriate logging needed

//original message
from("direct:processRequest")
  .... // code for processing the request

More info with examples @ http://camel.apache.org/wire-tap.html

Regards,
-Yogesh



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-wiretap-without-consuming-the-original-queue-tp5767253p5767308.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to