From

Every Camel route starts from an Endpoint as the input (source) to the route.

The from EIP is the input.

the Java DSL also provides a fromF EIP, which can be used to avoid concatenating route parameters and making the code harder to read.

Options

The From eip supports 0 options, which are listed below.

Name Description Default Type

note

The note for this node.

String

description

The description for this node.

String

uri

Required The endpoint URI to consume from.

String

variableReceive

To use a variable to store the received message body (only body, not headers). This makes it handy to use variables for user data and to easily control what data to use for sending and receiving.

String

Exchange properties

The From eip has no exchange properties.

Example

In the route below, the route starts from a File endpoint.

  • Java

  • XML

  • YAML

from("file:inbox")
  .to("log:inbox");
<route>
  <from uri="file:inbox"/>
  <to uri="log:inbox"/>
</route>
- route:
    from:
      uri: file:inbox
      steps:
        - to:
            uri: log:inbox