Question 55 of 72 from exam 1Z0-900: Java EE 7 Application Developer

Question 55 of 72 from exam 1Z0-900: Java EE 7 Application Developer

Question

Give the code fragment:

@Stateless

public class Warehouse {
public void sendConfirmation(String msg) {}
public String reverve(Product pro) {}

And the code fragment:

8: @Stateless

9:

10: public class Shop {

1:
12:

GEB private Warehouse war;

public void purchase(Product pro) {
String confirmationCode = war.reserve(pro);
war.sendConfirmation(confirmationCode);

The sendConfirmation() and reserve() methods should be executed in the same transactional context.

Which transaction attributes do you ensure this?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.