ExamGecko
Question list
Search
Search

Question 8 - 2V0-72.22 discussion

Report
Export

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.)

A.
There are 2 transactions because REQUIRES_NEW always runs in a new transaction.
Answers
A.
There are 2 transactions because REQUIRES_NEW always runs in a new transaction.
B.
An exception is thrown as another transaction cannot be started within an existing transaction.
Answers
B.
An exception is thrown as another transaction cannot be started within an existing transaction.
C.
There is only one transaction because REQUIRES_NEW will use an active transaction if one already exists.
Answers
C.
There is only one transaction because REQUIRES_NEW will use an active transaction if one already exists.
D.
There is only one transaction initiated by update1() because the call to update2() does not go through the proxy.
Answers
D.
There is only one transaction initiated by update1() because the call to update2() does not go through the proxy.
Suggested answer: D
asked 16/09/2024
Daniel williams
51 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first