application managed transactions in J2EE

前端 未结 1 754
感情败类
感情败类 2021-01-27 11:28

Does anyone have an example of the best way to begin, commit/rollback a transaction from within a CDI managed bean within a J2EE 6 container.?

I have run into a particul

相关标签:
1条回答
  • 2021-01-27 11:32

    You can write your interceptor for transaction management, then you can add this interceptor for your method. See this blog post.

    In Java EE 7 we have magical (:)) @Transactional annotation for declarative transaction management as well as in EJB.

    0 讨论(0)
提交回复
热议问题