PrepAway - Latest Free Exam Questions & Answers

which statement is true of all methods except the getEmployeelD method?

Consider the following partial XML descriptor for the EmployeeBean:

Given this partial XML descriptor for the EmployeeBean, which statement is true of all methods
except the getEmployeelD method?

PrepAway - Latest Free Exam Questions & Answers

A.
If the current thread is not involved in a transaction, the EJB container will not provide one. If
the current thread is involved in a transaction, the transaction is suspended, the method is
executed, and the thread’s transaction is resumed.

B.
If the current thread has a transaction, the method will run in that transaction. If there is no
current transaction, the EJB container will not provide one.

C.
The EJB container will provide a new transaction if the current thread does not already have
one. If the current thread has a transaction, the method will run within that transaction

D.
Regardless of whether the current thread has a transaction, the EJB container will always
provide a new transaction.


Leave a Reply