java - One upstream event with multiple items, how to set up spring integration pipeline transaction-wise -


let's imagine situation have incoming upstream message contains multiple items. each item contains information participates in business logic implemented part of pipeline.

difficulties can see: message has split & converted multiple internal events, processed further , if 1 of them fails, internal events should rolled if had 1 upstream message = 1 item, easier

how should 1 cater such situation architecture point of view? best pattern employ here? how should 1 set transactions?

thanks!

looks question isn't clear , transaction word used different subjects...

anyway let me guess want.

if going (and can) roll part of business request, should ensure global xa transaction of them , splitted sub-tasks in same thread. because let keep , track transaction , roll backs afterwards, if that.

if can't deal xa , single thread, should take solutions compensation transaction or acknowledge claim-checks.

but outside of spring integration scope.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -