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.
Terrilyn
9 hours agoAlethea
6 days agoBelen
11 days agoBrendan
16 days agoDean
21 days agoJettie
26 days agoDan
1 month agoPete
1 month agoDominga
1 month agoLavera
2 months agoBuddy
2 months agoSue
2 months agoThaddeus
2 months agoEdda
2 months agoGregoria
3 months agoLucia
3 months agoFreeman
3 months agoSoledad
3 months agoQuinn
2 months ago