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.


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


And in XML:

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

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: