...
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 | Description | Example | Required default | value Default Value |
---|---|---|---|---|
| The spring Spring integration input channel name that this endpoint wants to consume from that , where the specified channel name is defined in the spring Spring context. | | No |
|
| The spring Spring integration output channel name that is used to send message messages to the spring Spring integration context. | | No |
|
| The exchange pattern that spring the Spring integration endpoint should use. | | No | |
| Delay in millis milliseconds between each poll. | | No | |
| Millis Milliseconds before polling starts. | | No | |
| Specify | | No | |
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 could setup the Spring Integration Endpoint by using the URI can set up a Spring integration endpoint using a URI, as follows:
Wiki Markup |
---|
{snippet:id=example|lang=xml|url=camel/trunk/components/camel-spring-integration/src/test/resources/org/apache/camel/component/spring/integration/producer.xml} |
Wiki Markup |
---|
{snippet:id=example|lang=xml|url=camel/trunk/components/camel-spring-integration/src/test/resources/org/apache/camel/component/spring/integration/twoWayConsumer.xml} |
or by the Spring Integration Channel nameOr directly using a Spring integration channel name:
Wiki Markup |
---|
{snippet:id=example|lang=xml|url=camel/trunk/components/camel-spring-integration/src/test/resources/org/apache/camel/component/spring/integration/springChannelConverter.xml} |
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 headerThis example uses the following namespaces:
Wiki Markup |
---|
{snippet:id=header|lang=xml|url=camel/trunk/components/camel-spring-integration/src/test/resources/org/apache/camel/component/spring/integration/adapter/CamelTarget.xml} |
Now you could You can bind your source or target to camel context endpointa Camel endpoint as follows:
Wiki Markup |
---|
{snippet:id=example|lang=xml|url=camel/trunk/components/camel-spring-integration/src/test/resources/org/apache/camel/component/spring/integration/adapter/CamelTarget.xml} |
...