Multiple choice technology architecture

You have a method that can't be executed in a transaction. What is the correct attribute in the deployment descriptor?

  1. Leave it empty this is the default.

  2. NEVER

  3. NOT SUPPORTED

  4. NO_TRANSACTIONS

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In EJB deployment descriptors, the 'NEVER' transaction attribute explicitly indicates that the method must never be executed within a transaction context. 'NOT_SUPPORTED' allows the method to run outside a transaction but doesn't forbid it if one exists. 'NO_TRANSACTIONS' is not a valid EJB transaction attribute. The default is 'Required' for CMT beans, not empty.