<div>&quot;Should be active&quot;. It was one of the subject of this email </div><div class="gmail_quote">Le lun. 22 juin 2015 à 12:48, Jozef Hartinger &lt;<a href="mailto:jharting@redhat.com" target="_blank">jharting@redhat.com</a>&gt; a écrit :<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    What does &quot;Requestcontext should be up in Java SE&quot; mean exactly?</div><div text="#000000" bgcolor="#FFFFFF"><br>
    <br>
    <div>On 06/22/2015 11:26 AM, Antoine
      Sabot-Durand wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>To synthetize:</div>
        <div><br>
        </div>
        <div>- Requestcontext will be active during async events</div>
        <div>- To be consistent, Requestcontext should be up in Java SE</div>
        <div>- Other HTTP context (eception application) will be
          inactive</div>
        <div><br>
        </div>
        <div>This will clarified later, with context control ticket
          CDI-530</div>
        <div><br>
        </div>
        <div>I produce the EDR1 today and go back to you.</div>
        <div><br>
        </div>
        <div>Antoine</div>
        <br>
        <br>
        <div class="gmail_quote">
          <div dir="ltr">Le sam. 20 juin 2015 à 22:26, Mark Struberg
            &lt;<a href="mailto:struberg@yahoo.de" target="_blank">struberg@yahoo.de</a>&gt;
            a écrit :<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The
            Request context is not needed by the eventing system itself.
            But tons of usercode around needs the requestcontext to be
            set up and active. This is the default for almost every spec
            definedmanaged bean invocation. So we should rather not
            change this for async events neither. If we change this then
            you could not reuse lots of existing code in your new async
            observer.<br>
            <br>
            The lifecycle is rather easy to define: it starts shortly
            before the async method (including
            interceptors/decorators/etc) gets started and ends
            afterwards.<br>
            <br>
            LieGrue,<br>
            strub<br>
            <br>
            &gt; Am 20.06.2015 um 00:51 schrieb Anatole Tresch &lt;<a href="mailto:atsticks@gmail.com" target="_blank">atsticks@gmail.com</a>&gt;:<br>
            &gt;<br>
            &gt; Hi all,<br>
            &gt;<br>
            &gt; for me the question is: do we need a RequestContext? We
            have the Event payload, which is shared (and AFAIK also
            still mutable) and can be used to represent the common
            context as well, for both synch or asynch event cases.
            Adding a parallel &quot;context&quot; does not necessarily make things
            easier IMO, because you have to exactly define what a
            request in that sense is, when does it start, where does it
            end, how it is propagated/stacked etc. So my question is:
            what is the benefit of defining the request scope additional
            to the event payload already in place?<br>
            &gt;<br>
            &gt; Anatole<br>
            &gt;<br>
            &gt;<br>
            &gt; 2015-06-18 15:10 GMT+02:00 Antoine Sabot-Durand &lt;<a href="mailto:antoine@sabot-durand.net" target="_blank">antoine@sabot-durand.net</a>&gt;:<br>
            &gt; Hi guys,<br>
            &gt;<br>
            &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;<br>
            &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;<br>
            &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;<br>
            &gt; What is you feeling about this ?<br>
            &gt;<br>
            &gt; Antoine<br>
            &gt;<br>
            &gt; _______________________________________________<br>
            &gt; cdi-dev mailing list<br>
            &gt; <a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
            &gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
            &gt;<br>
            &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" rel="noreferrer" target="_blank">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>
            &gt;<br>
            &gt;<br>
            &gt; --<br>
            &gt; Anatole Tresch<br>
            &gt; Java Engineer &amp; Architect, JSR Spec Lead<br>
            &gt; Glärnischweg 10<br>
            &gt; CH - 8620 Wetzikon<br>
            &gt;<br>
            &gt; Switzerland, Europe Zurich, GMT+1<br>
            &gt; Twitter:  @atsticks<br>
            &gt; Blogs: <a href="http://javaremarkables.blogspot.ch/" rel="noreferrer" target="_blank">http://javaremarkables.blogspot.ch/</a><br>
            &gt; Google: atsticks<br>
            &gt; Mobile  +41-76 344 62 79<br>
            &gt; _______________________________________________<br>
            &gt; cdi-dev mailing list<br>
            &gt; <a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
            &gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
            &gt;<br>
            &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" rel="noreferrer" target="_blank">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>
            <br>
            <br>
            _______________________________________________<br>
            cdi-dev mailing list<br>
            <a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
            <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
            <br>
            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" rel="noreferrer" target="_blank">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.</blockquote>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
cdi-dev mailing list
<a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a>

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" target="_blank">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.</pre>
    </blockquote>
    <br>
  </div></blockquote></div>