I don't see why not, just don't tell the processor that it's a content
enricher or it might have an identity crisis :)

from("direct:a").process(new Processor() {
public void process(Exchange exchange) {
    Message in = exchange.getIn(); in.setBody("Hello World, I have a hot
new body!"); }
 }).to("direct:b");

Taariq


On Mon, Nov 28, 2011 at 8:58 AM, Gnanaguru S <
[email protected]> wrote:

>
> Hi
>
> I just saw the content enricher documentation in camel. I want to whether
> my
> scenario can be achieved here.
>
> 1. From endpoint A i am getting some message to a queue, I want to replace
> the whole message using this content enricher and send it to another
> endpoint.
>
>
> Regards
> Guru
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Query-on-content-enricher-in-camel-tp5027954p5027954.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to