Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor copy edits

...

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

inputChannel

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.

inputChannel=requestChannel

No

 

outputChannel

The spring Spring integration output channel name that is used to send message messages to the spring Spring integration context.

outputChannel=replyChannel

No

 

inOut

The exchange pattern that spring the Spring integration endpoint should use.

inOut=true

No

inOnly for the spring Spring integration consumer and outOnly for the spring Spring integration provider

consumer.delay

Delay in millis milliseconds between each poll.

consumer.delay=60000

No

500

consumer.initialDelay

Millis Milliseconds before polling starts.

consumer.initialDelay=10000

No

1000

consumer.userFixedDelay

Specify true to use fixed delay between poolspolls, otherwise fixed rate is used. See the JavaScheduledExecutorService in JDK class for details.

consumer.userFixedDelay=false

No

false

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}

...