Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.

Starting point for a Camel Route that starts a route with a given Endpoint. The Endpoint can be from one of the many Camel Components. The component creates Camel Exchanges from their respective Sources and puts them into the route.

Syntax

Java

  • from(String uri)
  • from(Endpoint endPoint)

Spring XML

<from uri="" ref=""/>

Parameters

Parameter

Type

Description

uri

String

URI describing a Camel Endpoint

endpoint

Endpoint

a Camel Endpoint

ref

Bean

Reference to an Endpoint bean definition

Examples

Start a route with the File Endpoint. Each file in the directory creates an Exchange that is put into the camel route.

Java

 A camel route is started using from inside the configure method of the class RouteBuilder.

from("file:c:/in")

 Spring XML Schema

The route is defined inside a CamelContext.

<route>
  <from uri="file:c:/in" />
</route>
© 2004-2015 The Apache Software Foundation.
Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram