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…
Question
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)- A3% (2)
- B15% (10)
- C6% (4)
- D76% (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
Community Discussion
No community discussion yet for this question.