From

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

The From EIP is the input.

Options

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

Name Description Default Type

uri

Required Sets the URI of the endpoint to use.

String

description

Sets the description of this node.

String

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>
- from:
    uri: file:inbox
    steps:
      - to:
          uri: log:inbox