This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Return Address

Camel supports the Return Address from the EIP patterns by using the JMSReplyTo header.

For example when using JMS with InOut the component will by default return to the address given in JMSReplyTo.

Requestor Code

Code Block
getMockEndpoint("mock:bar").expectedBodiesReceived("Bye World");
template.sendBodyAndHeader("direct:start", "World", "JMSReplyTo", "queue:bar");

Route Using the Fluent Builders

Code Block
from("activemq:queue:foo").transform(body().prepend("Bye "));

Route Using the Spring XML Extensions

Code Block
  <from uri="direct:start"/>
  <to uri="activemq:queue:foo?preserveMessageQos=true"/>

  <from uri="activemq:queue:foo"/>
      <simple>Bye ${in.body}</simple>

  <from uri="activemq:queue:bar?disableReplyTo=true"/>
  <to uri="mock:bar"/>

For a complete example of this pattern, see this junit test case

Include Page
Using This Pattern
Using This Pattern