Results 1 to 4 of 4

Thread: Router + Splitter + Spring Integration.

  1. #1

    Question 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. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,842

    Default

    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

  3. #3

    Question 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 at 12:13 PM.

  4. #4

    Default 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 at 12:04 PM. Reason: Bad response

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •