nerdexam
Oracle

1Z0-895 · Question #44

Given two stateless session beans, ABean and BBean: A client that is not executing within a transaction acquires an EJB reference to ABean and invokes the a() method on time. How many distinct…

The correct answer is B. 1. If a client invokes the enterprise bean's method while the client is associated with a transaction context, the container invokes the enterprise bean's method in the client's transaction context. Enum TransactionAttributeType

Transactions

Question

Given two stateless session beans, ABean and BBean: A client that is not executing within a transaction acquires an EJB reference to ABean and invokes the a() method on time. How many distinct transactions are started by the container after all processing has completed?

Exhibit

1Z0-895 question #44 exhibit

Options

  • A0
  • B1
  • C2
  • D3

How the community answered

(41 responses)
  • A
    17% (7)
  • B
    71% (29)
  • C
    5% (2)
  • D
    7% (3)

Explanation

If a client invokes the enterprise bean's method while the client is associated with a transaction context, the container invokes the enterprise bean's method in the client's transaction context. Enum TransactionAttributeType

Topics

#REQUIRED transaction attribute#UserTransaction#transaction propagation#stateless session beans

Community Discussion

No community discussion yet for this question.

Full 1Z0-895 Practice