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
Options
- A0
- B1
- C2
- D3
How the community answered
(41 responses)- A17% (7)
- B71% (29)
- C5% (2)
- D7% (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.
