Endpoints

Camel supports the Message Endpoint pattern using the Endpoint interface.

Endpoints are created by a Component and these endpoints are referred to in the DSL via their endpoint URIs.

Example

The following example route demonstrates the use of a File consumer endpoint and a * JMS producer endpoint, by their URIs:

from("file:messages/foo")
    .to("jms:queue:foo");

And in XML:

<route>
    <from uri="file:messages/foo"/>
    <to uri="jms:queue:foo"/>
</route>

Endpoint API

You will almost never have the need for creating endpoints manually via Java API.

From an Endpoint you can use the following Java API methods to create producers or consumers to the endpoint: