1. Contextual proxies are not accessible from message driven beans due to a ClassNotFoundException for `org.jboss.as.ejb3.component.concurrent.EJBContextHandleFactory$EJBContextHandle`.
2. Resolving the above leads to a further problem:
Contextual proxies (see https://javaee.github.io/javaee-spec/javadocs/javax/enterprise/concurrent/ContextService.html) delivered via ObjectMessage to a message driven bean do not completely survive object serialisation.
Specifically, the org.jboss.as.ee.concurrent.IdentityAwareProxyInvocationHandler that supports this has a transient instance variable:
private final transient SecurityIdentity securityIdentity;
which means that the proxied object does not have access to the caller's security identity as required by the EE Concurrency Utility specs.
- is related to
-
WFLY-4308 Proxies created via ContextService.createContextualProxy(...) are not Serializable
-
- Closed
-