Announcement Announcement Module
No announcement yet.
Multi-threading the HTTP outbound-channel-adapter Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multi-threading the HTTP outbound-channel-adapter

    We are reading messages from a JMS Queue, which we do multi-threaded using the JMS message-driven-channel-adapter, which dumps the messages into a Spring Integration channel.

    After this we want the messages to be delivered by a Rest call over HTTP to a remote server. By default the HTTP outbound-channel-adapter is going to read 1 message at a time from the channel and send the messages serially. Is there any possibility of having this happen asynchronously? Maybe with a configurable number of sender threads?


  • #2
    If you use direct channels the ReST calls will be done on the message-driven adapter's threads and hence will be multi-threaded.

    You control the concurrency using the concurrent-consumers and max-concurrent-consumers attributes on the JMS adapter.