如何控制服务调用管道中的事务传播

如何控制服务调用管道中的事务传播,例如在DDD模型中,我不希望子过程在遇到异常时回滚

原提问者GitHub用户hylitjob

展开
收起
学习娃 2023-06-14 16:50:01 48 分享 版权
1 条回答
写回答
取消 提交回答
  • 基本上,您可以使用API:

    ` // before sub procedure call String xid = RootContext.unbind();

    // Do you sub procedure call

    RootContext.bind(xid); `

    原回答者GitHub用户sharajava

    2023-06-14 17:25:06
    赞同 展开评论
问答地址: