Hi I'm a newbie to Apache Camel and currently evaluating it - though I know Spring Integration and EIP pretty well.
Looking briefly at this example: http://camel.apache.org/walk-through-an-example.html I wonder what happens when I call the sendBody() in several threads? This is of course a simple example but imagine this flow: ====================================== 1. Entrypoint with an adress-and-content message passes: 1.1 an adress message to an "GetEmailBasedOnAdressEndpoint" 1.2 a content messge to an EmailGateway Endpoint 2. GetEmailBasedOnAdressEndpoint gets an email based on an adress and sends an email-adress to the EmailGatewayEndpoint 3. The Email gets both email from one endpoint and content from another endpoint. In case both have been received the gateway is contacted. ====================================== In this case it is important that for each sendBody() it is important creating new endpoints for per thread /service call. This avoids weird behavior and side effects. Using Spring Integration I used XML configuration defining the an integration service like "SendEmailService". My entrypoint was a factory reading this configuration and each time. What is standard approach using Apache Camel? Thanks Tai -- Sent from my Android phone with K-9 Mail. Please excuse my brevity.