...
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. |
...
inputChannel=requestChannel
...
No
...
...
| String |
...
The |
...
Spring integration output channel name that is used to send |
...
messages to the |
...
Spring integration context. |
...
outputChannel=replyChannel
...
No
...
...
| String |
...
The exchange pattern that |
...
the Spring integration endpoint should use |
...
. If |
...
No
...
inOnly for the spring integration consumer and outOnly for the spring integration provider
...
consumer.delay
...
Delay in millis between each poll
...
consumer.delay=60000
...
No
...
500
...
consumer.initialDelay
...
Millis before polling starts
...
consumer.initialDelay=10000
...
No
...
1000
...
consumer.userFixedDelay
...
true to use fixed delay between pools, otherwise fixed rate is used. See ScheduledExecutorService in JDK for details.
...
consumer.userFixedDelay=false
...
No
...
false
...
then a reply channel is expected, either from the Spring Integration Message header or configured on the endpoint. |
Usage
The Spring integration component is a bridge that connects Camel endpoints with Spring integration
Usage
Spring Integration component is a bridge which connects Spring 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 could setup the Spring Integration Endpoint by using the URI
...
can set up a Spring integration endpoint using a URI, as follows:
...
or by the Spring Integration Channel name
...
Or directly using a Spring integration channel name:
...
The Source and Target adapter
Spring Integartion integration also provides the Spring Integrationintegration's Source source and Target target adapters, which could can route the message messages from the a Spring Integration integration channel to a camel context Camel endpoint or from a camel context Camel endpoint to a Spring Integration Channelintegration channel.
Here is the name spaces header
...
This example uses the following namespaces:
...
Now you could You can bind your source or target to camel context endpoint
...
a Camel endpoint as follows:
...