Multiple choice technology architecture

Which transaction attribute should be set in the deployment descriptor for a method to guarantee that the method is NOT invoked with a transaction?

  1. RequiresNew

  2. Supported

  3. Never

  4. Mandatory

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

EJB transaction attributes control method invocation behavior. 'Never' means the method must NOT be invoked within a transaction context - if a client has an active transaction, the container throws an exception. 'Mandatory' requires a transaction (opposite), 'RequiresNew' always creates a new transaction, and 'Supported' runs with or without a transaction.