camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "liugang" <>
Subject [Question] Seems wireTap will always copy the origin Message
Date Fri, 26 Oct 2012 08:36:17 GMT
Hi All:

I found the wiretap will always copy the original exchange message after
deprecated those methods like " wireTap(String uri, boolean copy, Expression
body) " and " wireTap(String uri, boolean copy, Processor processor)" .

Checked the source code of org.apache.camel.model.WireTapDefinition<Type>,
the isCopy() and copy() method are:

    public WireTapDefinition<Type> copy() {
        return this;

    public boolean isCopy() {
        // should default to true if not configured
        return copy != null ? copy : true;

So, no matter, we use '.wireTap("XX")' or '.wireTap("XX").copy()' , it will
always copy the original exchange message.

Is It a bug? 


View raw message