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

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

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

A.
Caller security principal propagates along with an asynchronous EJB method invocation.

B.
Caller security principal does not propagate along with an asynchronous EJB method
invocation.

C.
Caller security principal propagates along with an asynchronous EJB method invocation only if
the target bean has at least one protected method.

D.
Caller security principal propagates along with an asynchronous EJB method invocation only if
the calling bean has at least one protected method.

Explanation:
One important caveat of asynchronous method invocation is that transactions are

not propagated to the asynchronous methoda 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.



Leave a Reply 1

Your email address will not be published. Required fields are marked *


Tamer Saleh

Tamer Saleh

A, the caller security propagates in all cases, but the Transaction is NOT