Announcement Announcement Module
Collapse
No announcement yet.
Router + Splitter + Spring Integration. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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:

    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

    Comment


    • #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.

      Comment


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

        Comment

        Working...
        X