Question about spring transaction propagation
Posted
by Yousui
on Stack Overflow
See other posts from Stack Overflow
or by Yousui
Published on 2010-05-02T16:48:47Z
Indexed on
2010/05/02
16:58 UTC
Read the original article
Hit count: 385
Hi guys,
I have a question about spring transaction propagation. If I use @Transactional(propagation = Propagation.REQUIRED) to annotate a method m1. When execution logic enter m1, if there is already a transaction, m1 will use that one. When after m1, what about the transaction? It ends or still open?(if I call m1 in another method, and after the invocation there is still other things to do).
In summary, I want to know when exiting an annotated method, the transaction ends or still open?
Great thanks.
© Stack Overflow or respective owner