If a router has multiple destinations, does it fork new threads to each and every destination?
What about a splitter? If splitter sends the message to the same destination by splitting the message, does it fork new threads as well?
Please explain.
Printable View
If a router has multiple destinations, does it fork new threads to each and every destination?
What about a splitter? If splitter sends the message to the same destination by splitting the message, does it fork new threads as well?
Please explain.
The router and splitter don't themselves spawn threads.
All thread management happens at the channel level.
These two sections of the reference manual should help clarify:
ExecutorChannel: http://static.springsource.org/sprin...xecutorchannel
Poller Configuration (scroll down to the example that includes a task-executor):
http://static.springsource.org/sprin...oint-namespace
Hope that helps.
-Mark
Thanks for explanation. I understand it now. Unless we use a task-executor, we can't spawn threads and Spawning threads is only at the channel level just like java.util.Concurrent.Executor
Executor executor = anExecutor;
executor.execute(new RunnableTask1());
Sorry about the reply I gave last time. When the router has multiple destinations, it is not spawning threads to destinations. We have a task-executor defined on the channel.