Results 1 to 2 of 2

Thread: Multi-threading the HTTP outbound-channel-adapter

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Location
    Halifax, NS, Canada
    Posts
    50

    Default 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?

    Thanks.
    Don Laidlaw
    Infor Global Solutions

  2. #2
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,038

    Default

    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.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

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
  •