Announcement Announcement Module
No announcement yet.
Usecase help Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Usecase help

    I have this use case where i'll receive data from email, call a webservice and send a response with original input + output back in the form of an email.

    Now at the end of chain i will need three objects 1- original mime message 2- response object from service. I need to combine these and send an email. How would i achieve this without using aggregator?


  • #2
    Why not use aggregator?
    1. Receive email -> send it to pub-sub channel with apply-sequence="true"
    2. One of the subscribers to the pub-sub channel is a bridge which connects pub-sub channel to the input-channel of the aggregator. Another subscriber is your WS flow which essentially output the message to the input channel of the aggregator. Now aggregator has two messages a) original one and the processed one.