Results 1 to 2 of 2

Thread: Async Gateway + AMQP

  1. #1

    Default Async Gateway + AMQP

    Hi all,

    I've a scenario where depending of some options, I can call a Gateway method and wait a result or not. Using Future like following sample is very interesting.
    https://github.com/SpringSource/spri.../async-gateway

    With this approach the same scenario can be called and wait, or forget. Does anybody knows the better pattern to implement Future request where AMQP are used?

    My Scenario is : Gateway -> AMQP (Inbound - Has a service Activator to do process on payload) -> AMQP (Outbound) -> ?
    Reading the docs I've understood that to Future work I'll need of Task Executor, so should I get the result of AMPQ Outbound and process on a Channel associated with a Executor? Should I get result for processing in two steps (start process on a gateway and get result on another).

    Best regards

  2. #2

    Default

    Hi all,

    Just to close it, to AMQP the solution with Future will not work, not because spring integration, but in this case is better get the result on second step using a identifier for original request.

    So I'm calling gateway passing object to process and starting anothef call to wait result on database.

    Best regards

Posting Permissions

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