Results 1 to 2 of 2

Thread: Configuration for sending an asynchronous message

  1. #1
    Join Date
    May 2007
    Posts
    13

    Default Configuration for sending an asynchronous message

    Hi
    I am trying send an asynchronous message using spring integration in my web app. I am using input and output channels defined in my application context file.
    I want to fire off a message and have the message sender immediately complete while asynchronously sending the message.
    What I am noticing is the message is consumed and processed in a synchronous fashion.

    What spring integration components would I need to accomplish this?
    Thanks

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

    Default

    Add a task-executor to make the channel an ExecutorChannel http://static.springsource.org/sprin...ecutor-channel

    http://static.springsource.org/sprin...xecutorchannel

    Or, make the input channel a QueueChannel. http://static.springsource.org/sprin...s-queuechannel

    http://static.springsource.org/sprin...n-queuechannel

    (But that will require a poller on the subscriber).

    Or, even better, don't expose the SI components to your application at all, and use an Async gateway instead.

    http://static.springsource.org/sprin...#async-gateway
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

Posting Permissions

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