Details
-
Clarification
-
Resolution: Done
-
Major
-
1.0
-
None
-
None
Description
CDI 1.0 spec states in 6.7.1. Request context lifecycle:
"The request scope is active: during any remote method invocation of any EJB" and "The request context is destroyed: after the EJB remote method invocation"
However it doesn't cover various invocation scenarios. For example it's possible to do in-VM invocation (via remote interface) from the same deployment or from a different deployment. Is the request context shared in this case? Will be destroyed after the EJB remote method invocation?
Also take into account that application servers often do optimization and handle remote interface calls in a local interface manner within the same JVM.