...
The spring-integration: component provides a bridge for Camel components to talk to spring integration endpoints.
URI format
Maven users will need to add the following dependency to their pom.xml
for this component:
...
URI format
...
Where defaultChannelName represents the default channel name which is used by the Spring Integration Spring context. It will equal to the inputChannel
name for the Spring Integration consumer and the outputChannel
name for the Spring Integration provider.
You can append query options to the URI in the following format, ?option=value&option=value&...
Options
...
Name | Type | Description |
---|
...
Example
...
Required
...
default value
...
| String | The Spring |
...
inputChannel
...
integration input channel name that this endpoint wants to consume from |
...
, where the specified channel name is defined in the |
...
Spring context. |
...
|
...
String |
...
...
outputChannel
...
The |
...
Spring integration output channel name that is used to send |
...
messages to the |
...
Spring integration context. |
...
|
...
String |
...
...
inOut
...
The exchange pattern that |
...
the Spring integration endpoint should use |
...
. If |
...
No
...
then a reply channel is expected, either from the Spring Integration Message header or configured on the endpoint. |
Usage
The Spring Integration integration component is a bridge which that connects Camel endpoints with Spring Integration integration endpoints through the Spring integration's input channels and output channels with the Camel endpoints. In Using this waycomponent, we can send out the Camel message messages to Spring Integration endpoints or receive the message messages from Spring Integration endpoint integration endpoints in a Camel routing context.
...
Examples
Using the Spring integration endpoint
You can set up a Spring integration endpoint using a URI, as follows:
...
Or directly using a Spring integration channel name:
...
The Source and Target adapter
Spring integration also provides the Spring integration's source and target adapters, which can route messages from a Spring integration channel to a Camel endpoint or from a Camel endpoint to a Spring integration channel.
This example uses the following namespaces:
...
You can bind your source or target to a Camel endpoint as follows:
...