From
Options
The From eip supports the following 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 |
Message Body
The message body at each side of the From EIP: EIP input is the body it needs, EIP output the body after it, and Steps the body its own steps start with.
| Side | Body | Description |
|---|---|---|
EIP output | what the consumer of its endpoint receives | The message the consumer of the endpoint receives. With variableReceive it goes into the variable, and the route starts with no body.
|
The bodies are the ones with the default options. A side that is not listed is not known, and tooling does not guess it. The carriers, the sides and the tools that use them are described in Message Body Types.
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