diff --git a/spring-integration-reference/src/configuration.xml b/spring-integration-reference/src/configuration.xml index 3fde229750..c102e6dad4 100644 --- a/spring-integration-reference/src/configuration.xml +++ b/spring-integration-reference/src/configuration.xml @@ -61,12 +61,10 @@
Configuring Message Channels - To create a Message Channel instance, use the 'channel' element: + To create a Message Channel instance, you can use the use the generic 'channel' element: <channel id="exampleChannel"/> - - You can also specify the channel's capacity: <channel id="exampleChannel" capacity="100"/> - + The default channel type is Point to Point. To create a Publish Subscribe channel, provide a value of true for the @@ -97,6 +95,17 @@ provided as a comma-delimited list: ]]> + + When using the "channel" element, the creation of the channel instances will be deferred to the ChannelFactory + defined on the MessageBus (see below). + + + To specificially create a QueueChannel, use the "queue-channel" element. + By using this element, you can also specify the channel's capacity: + <queue-channel id="exampleChannel" capacity="100"/> + + + To create a PriorityChannel, use the "priority-channel" element: ]]> @@ -229,9 +238,23 @@ When the endpoints are concurrency-enabled as described in the previous section, the invocation of the handling methods will happen within the handler thread pool and not the dispatcher pool. Finally, the Message Bus is capable of automatically creating channel instances (with default settings) if an endpoint registers a - subscription by providing the name of a channel that the bus does not recognize. + subscription by providing the name of a channel that the bus does not recognize. The type of the automatically + created channel will be determined by the ]]> + + The kind of channel that gets created automatically by the bus can be customized by using the "channel-factory" + element on the "message-bus" definition as in the following sample: + + + + + + ]]> + With this definition, all the channels created automatically will be PriorityChannel instances. + Without the "channel-factory element, the Message Bus will assume a default QueueChannelFactory. +
diff --git a/spring-integration-reference/src/spring-integration-reference.xml b/spring-integration-reference/src/spring-integration-reference.xml index bc4e90338a..56ea4ab49c 100644 --- a/spring-integration-reference/src/spring-integration-reference.xml +++ b/spring-integration-reference/src/spring-integration-reference.xml @@ -29,6 +29,10 @@ Mark Fisher + + Marius + Bogoevici + © SpringSource Inc., 2008