Public Class ClientServiceImpl Implements ClientService { @Transactional(propagation=Propagation
public class ClientServiceImpl implements ClientService { @Transactional(propagation=Propagation.REQUIRED) public void update1() { update2() ; } @Transactional(propagation=Propagation.REQUIRES_NEW) public void update2() { // ... } You are using transactions with Spring AOP. What is happening when the update1 method is called? (Select one)
A) There is only one transaction because the call to update2() is internal (it does not go through the proxy)
B) There is only one transaction because REQUIRES_NEW runs into the active transaction if one already exists
C) There are 2 transactions because REQUIRES_NEW always runs in a new transaction
Correct Answer:
Verified
Q47: In what order will these events occur
Q48: Consider that all Spring beans have been
Q49: Consider the following Spring Security configuration <security:http>
Q50: Which statement is NOT a characteristic of
Q51: Which of the following statements about Spring
Q52: Which statement is NOT true concerning Spring's
Q54: Which of the following methods is NOT
Q55: Consider the following Spring JMS configuration <jms:listener-container
Q56: Which of the following is a valid
Q57: Which of the following is NOT true
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents