If it&#39;s possible, I am all for it.<br><div class="gmail_quote"><div dir="ltr">On Sa., 19. März 2016 at 22:07, Werner Keil &lt;<a href="mailto:werner.keil@gmail.com">werner.keil@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Keeping the few annotations like @Inject as they are should be also in CDI&#39;s interest, but as JSR 330 is final there is no EG. Unlike this EG and mailing list with great participation, there has never been too much of an EG even when 330 was active, it was more or less Bob and maybe a few participants in the mailing lists. That activity stopped in 2011, see <a href="https://groups.google.com/forum/?hl=de#!forum/atinject-observer" target="_blank">https://groups.google.com/forum/?hl=de#!forum/atinject-observer</a>, so the EG pretty much died 5 years ago. <div><br></div><div>It seems reasonable and natural to do changes or tweaks as part of CDI.<br><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="margin:0px;border-collapse:collapse"><font face="arial, helvetica, sans-serif" size="1"><span lang="EN-US">Werner</span></font></p><span lang="EN-GB"><div style="font-family:arial,helvetica,sans-serif"><br></div></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Sat, Mar 19, 2016 at 9:35 PM,  <span dir="ltr">&lt;<a href="mailto:cdi-dev-request@lists.jboss.org" target="_blank">cdi-dev-request@lists.jboss.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Send cdi-dev mailing list submissions to<br>
        <a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<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>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:cdi-dev-request@lists.jboss.org" target="_blank">cdi-dev-request@lists.jboss.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:cdi-dev-owner@lists.jboss.org" target="_blank">cdi-dev-owner@lists.jboss.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of cdi-dev digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: Merging JSR-330 into CDI (aalmiray)<br>
   2. Re: Merging JSR-330 into CDI (Stephan Knitelius)<br>
   3. Re: @ThreadScoped? (Stephan Knitelius)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 19 Mar 2016 12:45:40 -0700 (MST)<br>
From: aalmiray &lt;<a href="mailto:aalmiray@yahoo.com" target="_blank">aalmiray@yahoo.com</a>&gt;<br>
Subject: Re: [cdi-dev] Merging JSR-330 into CDI<br>
To: <a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
Message-ID: &lt;<a href="mailto:1458416740491-5712817.post@n5.nabble.com" target="_blank">1458416740491-5712817.post@n5.nabble.com</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii</blockquote></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
<br>
Precisely my thoughts. Any changes in behavior / binary compatibility in<br>
JSR-330 must be discussed with the JSR-330 EG and stakeholders.<br>
<br>
This being said, what would be the real benefit (to both specs) of rolling<br>
JSR-330 as a subspec of CDI?<br>
<br>
Cheers,<br>
Andres<br>
<br>
<br>
<br></blockquote></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
--<br>
View this message in context: <a href="http://cdi-development-mailing-list.1064426.n5.nabble.com/Merging-JSR-330-into-CDI-tp5712810p5712817.html" rel="noreferrer" target="_blank">http://cdi-development-mailing-list.1064426.n5.nabble.com/Merging-JSR-330-into-CDI-tp5712810p5712817.html</a></blockquote></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
Sent from the CDI Development mailing list mailing list archive at Nabble.com.<br>
<br>
<br></blockquote></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
------------------------------<br>
<br>
Message: 2<br>
Date: Sat, 19 Mar 2016 19:53:13 +0000<br>
From: Stephan Knitelius &lt;<a href="mailto:stephan@knitelius.com" target="_blank">stephan@knitelius.com</a>&gt;<br>
Subject: Re: [cdi-dev] Merging JSR-330 into CDI<br>
To: Manfred Riem &lt;<a href="mailto:mnriem@gmail.com" target="_blank">mnriem@gmail.com</a>&gt;<br>
Cc: <a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:CAGMB8Y1pe60oOc35uA19MpmeEjUMLZGn39vPTofxS24_8gcnyg@mail.gmail.com" target="_blank">CAGMB8Y1pe60oOc35uA19MpmeEjUMLZGn39vPTofxS24_8gcnyg@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;</blockquote></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
<br>
Hi Manfred,<br>
<br>
sorry my replay was a bit out of context since, I was referring to Rezas<br>
last mail.<br>
<br>
As already discussed yesterday, this could proof difficult. Since there are<br>
other implementations based on JSR-330, most noticeably spring.<br>
<br></blockquote></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
What exactly are we looking to gain from integrating JSR-330?<br>
<br>
I agree it would be &quot;cleaner&quot;, but maybe too much effort for too little<br>
gain.<br>
<br>
If we wanted greater control over those parts, maybe it would be better to<br>
move these parts into a separate module for backwards compatibility.<br>
Including new CDI owned annotations alongside the separated JSR-330, as and<br>
where sensible.<br>
<br>
Stephan<br>
<br>
<br></blockquote></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On Sa., 19. M?rz 2016 at 20:40, Manfred Riem &lt;<a href="mailto:mnriem@gmail.com" target="_blank">mnriem@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi Stephan,<br>
&gt;<br>
&gt; I am suggesting that JSR-330 gets rolled into the CDI spec as a chapter as<br>
&gt; it currently<br>
&gt; stands. Anything beyond that is beyond the scope of the discussion/wish I<br>
&gt; have as that<br>
&gt; would then be decided by the combined EG.<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
&gt; King regards,<br>
&gt; Manfred Riem<br>
&gt;<br>
&gt;<br>
&gt; On Mar 19, 2016, at 2:33 PM, Stephan Knitelius &lt;<a href="mailto:stephan@knitelius.com" target="_blank">stephan@knitelius.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; If I understand you correctly, you are suggesting to move the JSR-330<br>
&gt; annotations into a separate CDI module/profile, thereby semi-deprecating<br>
&gt; these.<br>
&gt;<br>
&gt; This would essentially open up the possibility of replacing @Named, etc...<br>
&gt; with CDI specific annotations.<br>
&gt;<br>
&gt; Certainly an interesting path to explore.<br>
&gt;<br>
&gt; Stephan<br>
&gt;<br>
&gt;<br></blockquote></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
&gt; On Sa., 19. M?rz 2016 at 19:27, Manfred Riem &lt;<a href="mailto:mnriem@gmail.com" target="_blank">mnriem@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; I couldn&#39;t agree more ;)<br>
&gt;&gt;<br>
&gt;&gt; Thanks!<br>
&gt;&gt;<br>
&gt;&gt; Kind regards,<br>
&gt;&gt; Manfred Riem<br>
&gt;&gt;<br>
&gt;&gt; &gt; On Mar 19, 2016, at 10:47 AM, Reza Rahman &lt;<a href="mailto:reza_rahman@lycos.com" target="_blank">reza_rahman@lycos.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I definitely think it&#39;s an idea worth exploring. It will strengthen<br>
&gt;&gt; CDI&#39;s hand further. It will be great if some of the confusingly redundant<br>
&gt;&gt; APIs like @Singleton could be deprecated in the process.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; BTW, it is really great to see you active in the community!<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; On Mar 19, 2016, at 10:49 AM, Manfred Riem &lt;<a href="mailto:mnriem@gmail.com" target="_blank">mnriem@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Hi all,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; I wrote a little blog entry about a CDI wish I have and in essence it<br>
&gt;&gt; comes<br>
&gt;&gt; &gt;&gt; down to merging JSR-330 into the CDI specification as a sub spec. I<br>
&gt;&gt; realize<br>
&gt;&gt; &gt;&gt; there is history there, but to me it looks like the best course of<br>
&gt;&gt; action.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; I had some twitter exchanges about this and some folks are for, some<br>
&gt;&gt; are<br>
&gt;&gt; &gt;&gt; against.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Note I think this is worth exploring as an idea, not something that<br>
&gt;&gt; &gt;&gt; necessarily needs to be in the current JSR, but definitely something<br>
&gt;&gt; that I<br>
&gt;&gt; &gt;&gt; think is worth to do at some point (sooner rather than later in my<br>
&gt;&gt; book).<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; What do you think?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Thanks!<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Kind regards,<br>
&gt;&gt; &gt;&gt; Manfred Riem<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://cdi-development-mailing-list.1064426.n5.nabble.com/Merging-JSR-330-into-CDI-tp5712810.html" rel="noreferrer" target="_blank">http://cdi-development-mailing-list.1064426.n5.nabble.com/Merging-JSR-330-into-CDI-tp5712810.html</a><br>
&gt;&gt; &gt;&gt; Sent from the CDI Development mailing list mailing list archive at<br></blockquote></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
&gt;&gt; Nabble.com &lt;<a href="http://nabble.com" rel="noreferrer" target="_blank">http://nabble.com</a>&gt;.</blockquote></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; cdi-dev mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
&gt;&gt; &gt;&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;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Note that for all code provided on this list, the provider licenses<br>
&gt;&gt; the code under the Apache License, Version 2 (<br>
&gt;&gt; <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<br>
&gt;&gt; provided on this list, the provider waives all patent and other<br>
&gt;&gt; intellectual property rights inherent in such information.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; cdi-dev mailing list<br>
&gt;&gt; &gt; <a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
&gt;&gt; &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;&gt; &gt;<br>
&gt;&gt; &gt; Note that for all code provided on this list, the provider licenses the<br>
&gt;&gt; code under the Apache License, Version 2 (<br>
&gt;&gt; <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<br>
&gt;&gt; provided on this list, the provider waives all patent and other<br>
&gt;&gt; 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" target="_blank">cdi-dev@lists.jboss.org</a><br>
&gt;&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;&gt;<br>
&gt;&gt; Note that for all code provided on this list, the provider licenses the<br>
&gt;&gt; code under the Apache License, Version 2 (<br>
&gt;&gt; <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<br>
&gt;&gt; provided on this list, the provider waives all patent and other<br>
&gt;&gt; intellectual property rights inherent in such information.<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br></blockquote></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.jboss.org/pipermail/cdi-dev/attachments/20160319/ced89eaa/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.jboss.org/pipermail/cdi-dev/attachments/20160319/ced89eaa/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sat, 19 Mar 2016 20:35:29 +0000<br>
From: Stephan Knitelius &lt;<a href="mailto:stephan@knitelius.com" target="_blank">stephan@knitelius.com</a>&gt;<br>
Subject: Re: [cdi-dev] @ThreadScoped?<br>
To: Mark Struberg &lt;<a href="mailto:struberg@yahoo.de" target="_blank">struberg@yahoo.de</a>&gt;, Reza Rahman<br>
        &lt;<a href="mailto:reza_rahman@lycos.com" target="_blank">reza_rahman@lycos.com</a>&gt;<br>
Cc: cdi-dev &lt;<a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:CAGMB8Y0_19L6-cZZS7AEVh%2Bye0bx6%2BS9tqNV35ixaWD3eT5uoA@mail.gmail.com" target="_blank">CAGMB8Y0_19L6-cZZS7AEVh+ye0bx6+S9tqNV35ixaWD3eT5uoA@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
I would certainly agree with the assertion that in general it&#39;s not<br>
advisable to execute a request with multiple threads and that usually<br>
single threaded execution is sufficient.<br>
<br>
However I don&#39;t think ignoring it is an option. Concurrent operations can<br>
be launched even from CDI beans. Yet we don&#39;t properly support context<br>
propagation nor a context spanning all threads launched from a request.<br>
<br>
I know that changing @requestScoped is probably out of the question, but at<br>
least we should consider adding a new context spanning all threads and<br>
defining a logical solution for context propagation that can be explained<br>
to the end user.<br>
<br>
<br>
<br>
On Fr., 11. M?rz 2016 at 17:17, Mark Struberg &lt;<a href="mailto:struberg@yahoo.de" target="_blank">struberg@yahoo.de</a>&gt; wrote:<br>
<br>
&gt; Yes, but certain things in EE are assumed to be handled on a single<br>
&gt; thread. And if you run on a servr then this is really not a blocker most<br>
&gt; times. If I get many paralllel requests hitting my box then I do not need<br>
&gt; async handling _that_ often. The whole overhead for setting up the new<br>
&gt; thread, etc often heavily exceeds the benefits.<br>
&gt; So I would not put too much energy into it?<br>
&gt;<br>
&gt; LieGrue,<br>
&gt; strub<br>
&gt;<br>
&gt; &gt; Am 11.03.2016 um 15:44 schrieb Reza Rahman &lt;<a href="mailto:reza_rahman@lycos.com" target="_blank">reza_rahman@lycos.com</a>&gt;:<br>
&gt; &gt;<br>
&gt; &gt; This is essentially in keeping with the minimalist nature of the EE<br>
&gt; concurrency JSR. I believe most of it is left to vendors to do the right<br>
&gt; thing for users. May be a good idea is this language can be tightened up.<br>
&gt; &gt;<br>
&gt; &gt;&gt; On Mar 11, 2016, at 6:01 AM, Mark Struberg &lt;<a href="mailto:struberg@yahoo.de" target="_blank">struberg@yahoo.de</a>&gt; wrote:<br>
&gt; &gt;&gt; E<br>
&gt; &gt;&gt; From the servlet spec:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; ?Java Enterprise Edition features such as Section 15.2.2, ?Web<br>
&gt; Application Environment? on page 15-174 and Section 15.3.1, ?Propagation of<br>
&gt; Security Identity in EJBTM Calls? on page 15-176 are available only to<br>
&gt; threads executing the initial request or when the request is dispatched to<br>
&gt; the container via the AsyncContext.dispatch method. Java Enterprise Edition<br>
&gt; features may be available to other threads operating directly on the<br>
&gt; response object via the AsyncContext.start(Runnable) method.?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; check ?available only to threads executing the initial request?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Also if you look at the servlet AsyncContext then all the wording is<br>
&gt; written as MAY and not as MUST.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; LieGrue,<br>
&gt; &gt;&gt; strub<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&gt; Am 10.03.2016 um 19:52 schrieb Romain Manni-Bucau &lt;<br>
&gt; <a href="mailto:rmannibucau@gmail.com" target="_blank">rmannibucau@gmail.com</a>&gt;:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Hi Mark,<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; think 2.3.3.4 states the opposite.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Romain Manni-Bucau<br>
&gt; &gt;&gt;&gt; @rmannibucau |  Blog | Github | LinkedIn | Tomitriber<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; 2016-03-10 19:43 GMT+01:00 Mark Struberg &lt;<a href="mailto:struberg@yahoo.de" target="_blank">struberg@yahoo.de</a>&gt;:<br>
&gt; &gt;&gt;&gt; Back from JavaLand conference, so sorry for not kicking in earlier.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; I not quite get the argumentation chain. It?s that all triggered by<br>
&gt; async servlet requests? And isn?t the servlet spec also saying that all the<br>
&gt; request param etc may max be assigned to a single thread AT A TIME!<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Means that it might not be on multiple threads in parallel, but the<br>
&gt; data is allowed to get moved from one thread to another (disapearing from<br>
&gt; the first one), right?<br>
&gt; &gt;&gt;&gt; Would really need to dig into the wording of the async servlets spec<br>
&gt; again, maybe has this in the back of his head?<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; LieGrue,<br>
&gt; &gt;&gt;&gt; strub<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Am <a href="tel:08.03.2016" value="+498032016" target="_blank">08.03.2016</a> um 14:43 schrieb Romain Manni-Bucau &lt;<br>
&gt; <a href="mailto:rmannibucau@gmail.com" target="_blank">rmannibucau@gmail.com</a>&gt;:<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Hi guys,<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; following request scope thread and to center the discussion on the<br>
&gt; thread safety part: do we work on this?<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Background: @RequestScoped is often used as a ThreadLocal instance<br>
&gt; solution. A lot of SE or Batch implementations rely on it from what I saw<br>
&gt; as well as async implementations reusing existing business logic with this<br>
&gt; thread safety constraint.<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Proposal: providing a @ThreadScoped implementation is cheap for CDI<br>
&gt; and implemenation and would avoid the headache we can have with<br>
&gt; @RequestScoped. Will also remove the quite dark side of the spec regarding<br>
&gt; servlet request and request scope since now we would have a more natural<br>
&gt; solution for all of these situation so @RequestScoped goals wouldn&#39;t<br>
&gt; collide as much.<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Questions:<br>
&gt; &gt;&gt;&gt;&gt; - is it automatically started as request scoped is (JMS, @Async,<br>
&gt; ...)? Alternative could be some configuration in beans.xml (merged accross<br>
&gt; the app):<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; &lt;beans&gt;<br>
&gt; &gt;&gt;&gt;&gt; &lt;scopes&gt;<br>
&gt; &gt;&gt;&gt;&gt;   &lt;thread&gt;<br>
&gt; &gt;&gt;&gt;&gt;     &lt;active&gt;JMS&lt;/active&gt;<br>
&gt; &gt;&gt;&gt;&gt;     &lt;active&gt;ASYNCHONOUS&lt;/active&gt;<br>
&gt; &gt;&gt;&gt;&gt;   &lt;/thread&gt;<br>
&gt; &gt;&gt;&gt;&gt; &lt;/scopes&gt;<br>
&gt; &gt;&gt;&gt;&gt; &lt;/beans&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; - start/stop API (this is typically an API the user should be able to<br>
&gt; control for its own threads)<br>
&gt; &gt;&gt;&gt;&gt; - CDI 2.*0*?<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; wdyt?<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Romain Manni-Bucau<br>
&gt; &gt;&gt;&gt;&gt; @rmannibucau |  Blog | Github | LinkedIn | Tomitriber</blockquote></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
&gt; &gt;&gt;&gt;&gt; _______________________________________________<br>
&gt; &gt;&gt;&gt;&gt; cdi-dev mailing list<br>
&gt; &gt;&gt;&gt;&gt; <a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
&gt; &gt;&gt;&gt;&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; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Note that for all code provided on this list, the provider licenses<br>
&gt; the code under the Apache License, Version 2 (<br>
&gt; <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<br>
&gt; provided on this list, the provider waives all patent and other<br>
&gt; intellectual property rights inherent in such information.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; cdi-dev mailing list<br>
&gt; &gt;&gt; <a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
&gt; &gt;&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; &gt;&gt;<br>
&gt; &gt;&gt; Note that for all code provided on this list, the provider licenses the<br>
&gt; code under the Apache License, Version 2 (<br>
&gt; <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<br>
&gt; provided on this list, the provider waives all patent and other<br>
&gt; 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" target="_blank">cdi-dev@lists.jboss.org</a><br>
&gt; &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; &gt;<br>
&gt; &gt; Note that for all code provided on this list, the provider licenses the<br>
&gt; code under the Apache License, Version 2 (<br>
&gt; <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<br>
&gt; provided on this list, the provider waives all patent and other<br>
&gt; intellectual property rights inherent in such information.<br>
&gt;<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<br>
&gt; code under the Apache License, Version 2 (<br>
&gt; <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<br>
&gt; provided on this list, the provider waives all patent and other<br>
&gt; intellectual property rights inherent in such information.<br></blockquote></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.jboss.org/pipermail/cdi-dev/attachments/20160319/1e3adce7/attachment.html" rel="noreferrer" target="_blank">http://lists.jboss.org/pipermail/cdi-dev/attachments/20160319/1e3adce7/attachment.html</a><br>
<br>
------------------------------</blockquote></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><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.<br>
<br></blockquote></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
End of cdi-dev Digest, Vol 64, Issue 100<br>
****************************************<br>
</blockquote></div><br></div></div></div>
_______________________________________________<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>