Refer to the exhibit.

Assume that the application is using Spring transaction management which uses Spring AOP internally.
Choose the statement that describes what is happening when the update1 method is called? (Choose the best answer.)
When using Spring transaction management with annotation-driven mode, the @Transactional annotation will be processed by a TransactionInterceptor that implements the AOP advice interface. This interceptor will be applied to the target bean through a proxy that implements the same interface as the target bean. Therefore, when a method of the target bean is called from outside, it will actually invoke the proxy method, which will delegate to the interceptor and then to the actual target method.
However, when a method of the target bean is called from within the same bean, it will not go through the proxy and thus bypass the interceptor logic. In this case, when update1() calls update2(), it will not start a new transaction as specified by REQUIRES_NEW propagation level, but rather join the existing transaction initiated by update1() itself.
Shelton
12 days agoMel
17 days agoMari
23 days agoPearly
28 days agoLavelle
1 month agoTimmy
1 month agoTerrilyn
2 months agoAlethea
2 months agoBelen
2 months agoBrendan
2 months agoDean
3 months agoJettie
3 months agoDan
3 months agoPete
3 months agoDominga
3 months agoLavera
3 months agoBuddy
4 months agoSue
4 months agoThaddeus
4 months agoEdda
4 months agoGregoria
5 months agoLucia
5 months agoFreeman
5 months agoSoledad
5 months agoLanie
2 days agoLenita
7 days agoQuinn
4 months ago