Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Este contenido no está disponible en el idioma seleccionado.
Chapter 160. SpringIntegration
Spring Integration Component Copiar enlaceEnlace copiado en el portapapeles!
Copiar enlaceEnlace copiado en el portapapeles!
The spring-integration: component provides a bridge for Apache Camel components to talk to spring integration endpoints.
URI format Copiar enlaceEnlace copiado en el portapapeles!
Copiar enlaceEnlace copiado en el portapapeles!
spring-integration:defaultChannelName[?options]
spring-integration:defaultChannelName[?options]
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 Copiar enlaceEnlace copiado en el portapapeles!
Copiar enlaceEnlace copiado en el portapapeles!
Name | Description | Example | Required | Default Value |
---|---|---|---|---|
inputChannel
|
The Spring 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 | |
outputChannel
|
The Spring integration output channel name that is used to send messages to the Spring integration context. |
outputChannel=replyChannel
|
No | |
inOut
|
The exchange pattern that the Spring integration endpoint should use. |
inOut=true
|
No |
inOnly for the Spring integration consumer and outOnly for the Spring integration provider
|
consumer.delay
|
Delay in milliseconds between each poll. |
consumer.delay=60000
|
No |
500
|
consumer.initialDelay
|
Milliseconds before polling starts. |
consumer.initialDelay=10000
|
No |
1000
|
consumer.userFixedDelay
|
Specify true to use fixed delay between polls, otherwise fixed rate is used. See the ScheduledExecutorService class for details.
|
consumer.userFixedDelay=false
|
No |
false
|
Usage Copiar enlaceEnlace copiado en el portapapeles!
Copiar enlaceEnlace copiado en el portapapeles!
The Spring integration component is a bridge that connects Apache Camel endpoints with Spring integration endpoints through the Spring integration's input channels and output channels. Using this component, we can send Camel messages to Spring Integration endpoints or receive messages from Spring integration endpoints in a Camel routing context.
Using the Spring integration endpoint Copiar enlaceEnlace copiado en el portapapeles!
Copiar enlaceEnlace copiado en el portapapeles!
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 Copiar enlaceEnlace copiado en el portapapeles!
Copiar enlaceEnlace copiado en el portapapeles!
Spring integration also provides the Spring integration's source and target adapters, which can route messages from a Spring integration channel to a Apache Camel endpoint or from a Apache Camel endpoint to a Spring integration channel.
This example uses the following namespaces:
You can bind your source or target to a Apache Camel endpoint as follows: