<p dir="ltr"><br>
Le 18 juin 2015 20:37, &quot;Mark Struberg&quot; &lt;<a href="mailto:struberg@yahoo.de">struberg@yahoo.de</a>&gt; a écrit :<br>
&gt;<br>
&gt; 1.) The whole point is that @RequestScoped is NOT a web context!<br>
&gt;<br>
&gt; Otherwise it would _not_ be active in JMS etc…<br>
&gt; And that was not an accident but intentional.<br>
&gt;</p>
<p dir="ltr">Excepted it is highly bound to web (events, lifecycle etc...). Ejb integ is weak and could have been  ignored - just my opinion on this last part, dont want a thread on this.<br></p>
<p dir="ltr">&gt; 2.) And no, different async threads will _never_ get the same request context…<br>
&gt;</p>
<p dir="ltr">Start to use it and you ll miss it - or u missed my point.</p>
<p dir="ltr">&gt;<br>
&gt; 3.) no @RequestScoped is a sub-part of a @ThreadScoped. Otherwise you would get the same context for 2 JMS invocations which get (randomly) executed on the same worker thread. Got me?<br>
&gt;</p>
<p dir="ltr">ThreadScoped  =TaskScope for an executor service.</p>
<p dir="ltr">The whole point is while you cant use it urself - without DS - it is not a threadscope. Is it clearer?</p>
<p dir="ltr">&gt;<br>
&gt; LieGrue,<br>
&gt; strub<br>
&gt;<br>
&gt;<br>
&gt; &gt; Am 18.06.2015 um 15:13 schrieb Romain Manni-Bucau &lt;<a href="mailto:rmannibucau@gmail.com">rmannibucau@gmail.com</a>&gt;:<br>
&gt; &gt;<br>
&gt; &gt; Hi<br>
&gt; &gt;<br>
&gt; &gt; I wouldn&#39;t activate any &quot;web&quot; scope by default, in particular for async events where I think most of the time it will not be used. Next feature request will be to inherit the scope between async threads....and here I guess we agree it will not go very far.<br>
&gt; &gt;<br>
&gt; &gt; Side note: using request scope where actually a thread scope is needed is a pain, maybe time to add a thread scoped with an accessible manual activation. Would make &quot;batches&quot;, &quot;timers&quot; etc easy to impl/integrate.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Romain Manni-Bucau<br>
&gt; &gt; @rmannibucau |  Blog | Github | LinkedIn | Tomitriber<br>
&gt; &gt;<br>
&gt; &gt; 2015-06-18 15:10 GMT+02:00 Antoine Sabot-Durand &lt;<a href="mailto:antoine@sabot-durand.net">antoine@sabot-durand.net</a>&gt;:<br>
&gt; &gt; Hi guys,<br>
&gt; &gt;<br>
&gt; &gt; We should finally decide how to manage normal scope context (other than application context ) in SE and during Async Event for EDR1.<br>
&gt; &gt;<br>
&gt; &gt; Having only RequestContext active during async event  as Martin suggest in the PR makes sense and would be consistent with its behavior during async EJB call.<br>
&gt; &gt;<br>
&gt; &gt; Mark asked twice to activate Request Context all the time in SE (making it a new Application Context). I’m not found of it, but I’ml not the only one to decide here.<br>
&gt; &gt;<br>
&gt; &gt; What is you feeling about this ?<br>
&gt; &gt;<br>
&gt; &gt; Antoine<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; cdi-dev mailing list<br>
&gt; &gt; <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
&gt; &gt;<br>
&gt; &gt; Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a href="http://www.apache.org/licenses/LICENSE-2.0.html">http://www.apache.org/licenses/LICENSE-2.0.html</a>). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; cdi-dev mailing list<br>
&gt; &gt; <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
&gt; &gt;<br>
&gt; &gt; Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a href="http://www.apache.org/licenses/LICENSE-2.0.html">http://www.apache.org/licenses/LICENSE-2.0.html</a>). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.<br>
&gt;<br>
</p>