Lukasz created CAMEL-12638:

             Summary: DefaultFluentProducerTemplate is not thread safe
                 Key: CAMEL-12638
             Project: Camel
          Issue Type: Bug
    Affects Versions: 2.20.2
            Reporter: Lukasz

I think we have rediscovered the CAMEL-10820 bug. A body of one request gets 
replaced with a body of proceeding request, in our case we use *request()* 
method instead of *asyncSend()*.

We use camel together with spring-boot. Consider following code:

public class UseCamelService {

   private FluentProducerTemplate producer;

   public UseCamelService(FluentProducerTemplate producer) {
      this.producer = producer;

   public String getValueFromCamel(String body) {

If *UseCamelService.getValueFromCamel()* gets called from two different threads 
it is possible for the latter one to override the body of the first one.

This message was sent by Atlassian JIRA

Reply via email to