Hello!

Please confirm I faced a bug.

This fluent producer does not send body to endpoint:

camelContext.createFluentProducerTemplate()
  .withBody(DATA)
  .withProcessor(exchange -> exchange.setProperty("prop", DATA))
  .to(ENDPOINT_IN)
  .send();

And this one does:

camelContext.createFluentProducerTemplate()
  .withBody(DATA)
  //.withProcessor(exchange -> exchange.setProperty("prop", DATA))
  .to(ENDPOINT_IN)
  .send();


My code with tests is here: 
https://github.com/bvn13/camel-bug-fluent-producer-template/blob/master/src/test/java/com/bvn13/bug/camel/fluentproducertemplate/camelbugfluentproducertemplate/CamelBugFluentProducerTemplateApplicationTests.java


_________________
Vyacheslav Boyko,
mailto:mail4...@gmail.com

Reply via email to