From f42201625aef9dee371f5fbc6947be90725bf6e7 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Fri, 31 Aug 2012 12:35:37 -0400 Subject: [PATCH] INT-2701 Document JEE TaskSchduler Override Explain how to override the default 'taskScheduler' with a TimerManagerTaskScheduler. --- src/reference/docbook/configuration.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/reference/docbook/configuration.xml b/src/reference/docbook/configuration.xml index b065280f76..a4ca6ce6b2 100644 --- a/src/reference/docbook/configuration.xml +++ b/src/reference/docbook/configuration.xml @@ -99,7 +99,7 @@ couple configuration options to consider. First, you may want to control the central TaskScheduler instance. You can do so by providing a single bean with the name "taskScheduler". This is also defined as a constant: - By default Spring Integration relies on an instance of ThreadPoolTaskScheduler as described in the Task Execution and Scheduling + By default Spring Integration relies on an instance of ThreadPoolTaskScheduler as described in the Task Execution and Scheduling section of the Spring Framework reference manual. That default TaskScheduler will startup automatically with a pool of 10 threads. If you provide your own TaskScheduler instance instead, you can set the 'autoStartup' property to false, and/or you can provide your own pool size value. @@ -115,6 +115,16 @@ input channels have dispatchers instead of queues (i.e. they are subscribable). Such endpoints have no poller configuration since their handlers will be invoked directly. + + When running in a JEE container, you may need to use Spring's TimerManagerTaskScheduler + as described + here, instead of the default taskScheduler. To do that, simply define a bean + with the appropriate JNDI name for your environment, for example: + + + +]]> + The next section will describe what happens if Exceptions occur within the asynchronous invocations.