Message Endpoint
Camel supports the Message Endpoint from the EIP patterns using the Endpoint interface.
When using the DSL to create Routes you typically refer to Message Endpoints by their URIs rather than directly using the Endpoint interface. Its then a responsibility of the CamelContext to create and activate the necessary Endpoint instances using the available Component implementations.
Example
The following example route demonstrates the use of a File Consumer Endpoint and JMS Producer Endpoint
Using the Fluent Builders
Code Block | ||
---|---|---|
| ||
from("file://local/router/messages/foo") .to("jms:queue:foo"); |
Using the Spring XML Extensions
Code Block | ||
---|---|---|
| ||
<route> <from uri="file://local/router/messages/foo"/> <to uri="jms:queue:foo"/> </route> |
For more details see
Include Page | ||||
---|---|---|---|---|
|