<html><body>
<p><font size="2" face="sans-serif"><a href="https://issues.jboss.org/browse/CDI-223">https://issues.jboss.org/browse/CDI-223</a></font><br>
<font size="2" face="sans-serif"><a href="https://issues.jboss.org/browse/CDI-219">https://issues.jboss.org/browse/CDI-219</a></font><br>
<font size="2" face="sans-serif"><a href="https://issues.jboss.org/browse/CDI-235">https://issues.jboss.org/browse/CDI-235</a></font><br>
<br>
<font size="2" face="sans-serif">These 3 JIRA issues basically boil down to 2 related discussions/clarifications.</font><br>
<br>
<font size="2" face="sans-serif">1) Should it be made more clear in the spec that request context that is created for a @Remote ejb (or really any time request context does not already exist on the thread) goes away when that method call finishes. This relates to the second issue, because this might extend to @PostConstruct & @PreDestroy if request scope should be active there as well.</font><br>
<br>
<font size="2" face="sans-serif">6.7.1 currently states the request scope is active:</font><br>
<br>
<font size="2" face="sans-serif">"during any remote method invocation of any EJB, during any asynchronous method invocation of any EJB, during any</font><br>
<font size="2" face="sans-serif">call to an EJB timeout method and during message delivery to any EJB message-driven bean, and"</font><br>
<br>
<font size="2" face="sans-serif">and it ends:</font><br>
<br>
<font size="2" face="sans-serif">"after the EJB remote method invocation, asynchronous method invocation, timeout or message delivery completes, or"</font><br>
<br>
<font size="2" face="sans-serif">2) What scopes should be active during lifecycle callbacks to EJBs. For example @PostConstruct in a @Remote ejb, or @PostConstruct on a @Startup @Singleton EJB might both be instances where users might want request context to be active if its not already. It is not even clear to me currently that application context should be active during these methods.</font><br>
<br>
<font size="2" face="sans-serif">There is one mention of @Predestroy in 6.7.3 regarding when application scope should be active, but its not specific to EJB:</font><br>
<br>
<font size="2" face="sans-serif">"when the disposer method or @PreDestroy callback of any bean with any normal scope other than @ApplicationScoped is called."</font><br>
<ul style="padding-left: 0pt"><font size="2" face="sans-serif">Sincerely,<br>
<br>
Joe<br>
</font></ul>
</body></html>