diff --git a/spring-integration-reference/src/endpoint.xml b/spring-integration-reference/src/endpoint.xml index 973f700c41..c819804662 100644 --- a/spring-integration-reference/src/endpoint.xml +++ b/spring-integration-reference/src/endpoint.xml @@ -226,10 +226,10 @@ consumer.setTransactionManager(txManager); The polling threads may be executed by any instance of Spring's TaskExecutor - abstraction. This enables concurrency for an endpoint or group of endpoints. As a convenience, there is also - namespace support for creating a simple thread pool executor. The <thread-pool-task-executor/> element - defines attributes for common concurrency settings such as core-size, max-size, and queue-capacity. Configuring - a thread-pooling executor can make a substantial difference in how the endpoint performs under load. These + abstraction. This enables concurrency for an endpoint or group of endpoints. As of Spring 3.0, there is a "task" + namespace in the core Spring Framework, and its <executor/> element supports the creation of a simple thread + pool executor. That element accepts attributes for common concurrency settings such as pool-size and queue-capacity. + Configuring a thread-pooling executor can make a substantial difference in how the endpoint performs under load. These settings are available per-endpoint since the performance of an endpoint is one of the major factors to consider (the other major factor being the expected volume on the channel to which the endpoint subscribes). To enable concurrency for a polling endpoint that is configured with the XML namespace support, provide the 'task-executor' @@ -238,16 +238,15 @@ consumer.setTransactionManager(txManager); - ]]> + ]]> If no 'task-executor' is provided, the consumer's handler will be invoked in the caller's thread. Note that the "caller" is usually the default TaskScheduler (see ). Also, keep in mind that the 'task-executor' attribute can provide a reference to any implementation of Spring's TaskExecutor interface by - specifying the bean name. The thread pool element is simply provided for convenience. + specifying the bean name. The "executor" element above is simply provided for convenience. As mentioned in the background section for Polling Consumers above, you can also configure a Polling Consumer diff --git a/spring-integration-reference/src/samples.xml b/spring-integration-reference/src/samples.xml index 006a93dee4..53c19c811c 100644 --- a/spring-integration-reference/src/samples.xml +++ b/spring-integration-reference/src/samples.xml @@ -222,7 +222,7 @@ ]]> -]]>]]> +]]>]]> Also, notice that the worker thread name is displayed with each invocation. You will see that the hot drinks are