Announcement Announcement Module
No announcement yet.
Router + Splitter + Spring Integration. Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Router + Splitter + Spring Integration.

    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.

  • #2
    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:


    Poller Configuration (scroll down to the example that includes a task-executor):

    Hope that helps.


    • #3
      But a dilemma.

      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());
      Last edited by srikanthradix; Apr 13th, 2010, 12:13 PM.


      • #4
        My bad.

        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.
        Last edited by srikanthradix; Apr 13th, 2010, 12:04 PM. Reason: Bad response