nerdexam
Oracle

1Z0-895 · Question #42

Which is true about caller security principal propagation for asynchronous EJB method Invocations?

The correct answer is D. Caller security principal propagates along with an asynchronous EJB method invocation only if the calling. One important caveat of asynchronous method invocation is that transactions are not propagated to the asynchronous method--a new transaction will be started for the asynchronous method. However, unlike transactions, the security principal will be propagated. Declarative…

Security

Question

Which is true about caller security principal propagation for asynchronous EJB method Invocations?

Options

  • ACaller security principal propagates along with an asynchronous EJB method invocation.
  • BCaller security principal does not propagate along with an asynchronous EJB method invocation.
  • CCaller security principal propagates along with an asynchronous EJB method invocation only if the target
  • DCaller security principal propagates along with an asynchronous EJB method invocation only if the calling

How the community answered

(68 responses)
  • A
    3% (2)
  • B
    15% (10)
  • C
    6% (4)
  • D
    76% (52)

Explanation

One important caveat of asynchronous method invocation is that transactions are not propagated to the asynchronous method--a new transaction will be started for the asynchronous method. However, unlike transactions, the security principal will be propagated. Declarative security is based only on the principal and the method being invoked, whereas programmatic security can take state into consideration.

Topics

#security principal propagation#asynchronous invocation#caller principal

Community Discussion

No community discussion yet for this question.

Full 1Z0-895 Practice