<div dir="ltr"><div>Guys,</div><div>Just noticed, I never joined the IRC chat from here in the company (last time was mostly Christmas in Austria) and both web URLs or ports seem blocked by our firewall and proxy, so I&#39;m afraid I can&#39;t join today either. If it&#39;s a less busy week I try to be at home by then should work there.</div><div><br></div><div>+1 for using Java SE 8 where we can btw. Everything that makes CDI 2 less dependent on other specs that may become optional in future profiles or won&#39;t even be around in a pure SE/desktop environment sounds like a good idea.</div><div><br></div><div>Werner</div><div><br></div><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 21, 2015 at 4:25 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;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">Send cdi-dev mailing list submissions to<br>
        <a href="mailto:cdi-dev@lists.jboss.org">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" 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">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">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: Today&#39;s meeting (Antoine Sabot-Durand)<br>
   2. Re: [JBoss JIRA] (CDI-499) Firing events asynchronously<br>
      (Werner Keil)<br>
   3. Re: Building EJB-like @Asynchronous via interceptor in CDI<br>
      (Antoine Sabot-Durand)<br>
   4. Re: [JBoss JIRA] (CDI-499) Firing events asynchronously<br>
      (Antoine Sabot-Durand)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 21 Jan 2015 16:04:38 +0100<br>
From: Antoine Sabot-Durand &lt;<a href="mailto:antoine@sabot-durand.net">antoine@sabot-durand.net</a>&gt;<br>
Subject: Re: [cdi-dev] Today&#39;s meeting<br>
To: John Ament &lt;<a href="mailto:john.d.ament@gmail.com">john.d.ament@gmail.com</a>&gt;<br>
Cc: &quot;<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>&quot; &lt;<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:6CE398B0-3590-4194-99BF-29C6B147148C@sabot-durand.net">6CE398B0-3590-4194-99BF-29C6B147148C@sabot-durand.net</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
Hi John,<br>
<br>
Good luck. I?ll be happy to talk to you next week.<br>
<br>
Antoine<br>
<br>
<br>
&gt; Le 21 janv. 2015 ? 13:40, John D. Ament &lt;<a href="mailto:john.d.ament@gmail.com">john.d.ament@gmail.com</a>&gt; a ?crit :<br>
&gt;<br>
&gt; Hey guys<br>
&gt;<br>
&gt; Was hoping to get to today&#39;s meeting, luck&#39;s not in my favor and I have some surgery today :-(  Good news is at least the next six weeks no one will bother me right before the scheduled meeting so I&#39;ll be there.<br>
&gt;<br>
&gt; I just updated the CDI SE ticket based on what we talked about last week.  I can start marking up the doc in google docs this week as well.<br>
&gt;<br>
&gt; - John<br>
&gt; _______________________________________________<br>
&gt; cdi-dev mailing list<br>
&gt; <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" 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" 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>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: signature.asc<br>
Type: application/pgp-signature<br>
Size: 495 bytes<br>
Desc: Message signed with OpenPGP using GPGMail<br>
Url : <a href="http://lists.jboss.org/pipermail/cdi-dev/attachments/20150121/a6d90af2/attachment-0001.bin" target="_blank">http://lists.jboss.org/pipermail/cdi-dev/attachments/20150121/a6d90af2/attachment-0001.bin</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 21 Jan 2015 16:07:46 +0100<br>
From: Werner Keil &lt;<a href="mailto:werner.keil@gmail.com">werner.keil@gmail.com</a>&gt;<br>
Subject: Re: [cdi-dev] [JBoss JIRA] (CDI-499) Firing events<br>
        asynchronously<br>
To: Antoine Sabot-Durand &lt;<a href="mailto:antoine@sabot-durand.net">antoine@sabot-durand.net</a>&gt;<br>
Cc: cdi-dev &lt;<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>&gt;<br>
Message-ID:<br>
        &lt;CAAGawe0qe3KvDk7r4Tb2zB-EhSWeV4oH64Gq7Y=P2Zg9-V=<a href="mailto:xHg@mail.gmail.com">xHg@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
Hi Antoine,<br>
<br>
It seems the exact place for that is still to be found, but even if these<br>
are separate threads in parallel the fact that CDI 2 aims to add support<br>
for async events means anything other JSRs cannot do or don&#39;t want to do<br>
(see Bill&#39;s remark on resources in other JSRs) would fit into CDI 2 as long<br>
as the resource situation here isn&#39;t too critical either of course;-)<br>
<br>
That&#39;s what I wanted to say.<br>
<br>
Werner<br>
<br>
On Wed, Jan 21, 2015 at 4:01 PM, Antoine Sabot-Durand &lt;<br>
<a href="mailto:antoine@sabot-durand.net">antoine@sabot-durand.net</a>&gt; wrote:<br>
<br>
&gt; Hi Werner,<br>
&gt;<br>
&gt;<br>
&gt; No, it doesn?t cover @Asynchronous or @Async annotation. Discussion about<br>
&gt; async operation support in CDI 2.0 is another subject.<br>
&gt;<br>
&gt;<br>
&gt; Le 21 janv. 2015 ? 13:52, Werner Keil &lt;<a href="mailto:werner.keil@gmail.com">werner.keil@gmail.com</a>&gt; a ?crit :<br>
&gt;<br>
&gt; Antoine/all,<br>
&gt;<br>
&gt; Is it safe to assume any recent discussion about an @Asynchronous<br>
&gt; annotation would be covered there unless e.g. EJB itself needs it to be<br>
&gt; updated for EE 8?<br>
&gt;<br>
&gt; Werner<br>
&gt;<br>
&gt; On Wed, Jan 21, 2015 at 1:06 PM, &lt;<a href="mailto:cdi-dev-request@lists.jboss.org">cdi-dev-request@lists.jboss.org</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Send cdi-dev mailing list submissions to<br>
&gt;&gt;         <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt;&gt;<br>
&gt;&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt;&gt;         <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
&gt;&gt; or, via email, send a message with subject or body &#39;help&#39; to<br>
&gt;&gt;         <a href="mailto:cdi-dev-request@lists.jboss.org">cdi-dev-request@lists.jboss.org</a><br>
&gt;&gt;<br>
&gt;&gt; You can reach the person managing the list at<br>
&gt;&gt;         <a href="mailto:cdi-dev-owner@lists.jboss.org">cdi-dev-owner@lists.jboss.org</a><br>
&gt;&gt;<br>
&gt;&gt; When replying, please edit your Subject line so it is more specific<br>
&gt;&gt; than &quot;Re: Contents of cdi-dev digest...&quot;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Today&#39;s Topics:<br>
&gt;&gt;<br>
&gt;&gt;    1. [JBoss JIRA] (CDI-499) Firing events asynchronously<br>
&gt;&gt;       (Antoine Sabot-Durand (JIRA))<br>
&gt;&gt;    2. [JBoss JIRA] (CDI-31) Asynchronous events<br>
&gt;&gt;       (Antoine Sabot-Durand (JIRA))<br>
&gt;&gt;    3. [JBoss JIRA] (CDI-499) Firing events asynchronously<br>
&gt;&gt;       (Antoine Sabot-Durand (JIRA))<br>
&gt;&gt;    4. [JBoss JIRA] (CDI-499) Firing events asynchronously<br>
&gt;&gt;       (Antoine Sabot-Durand (JIRA))<br>
&gt;&gt;    5. [JBoss JIRA] (CDI-499) Firing events asynchronously<br>
&gt;&gt;       (Jos? Paumard (JIRA))<br>
&gt;&gt;    6. [JBoss JIRA] (CDI-499) Firing events asynchronously<br>
&gt;&gt;       (Jozef Hartinger (JIRA))<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ----------------------------------------------------------------------<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Message: 6<br>
&gt;&gt; Date: Wed, 21 Jan 2015 07:06:49 -0500 (EST)<br>
&gt;&gt; From: &quot;Jozef Hartinger (JIRA)&quot; &lt;<a href="mailto:issues@jboss.org">issues@jboss.org</a>&gt;<br>
&gt;&gt; Subject: [cdi-dev] [JBoss JIRA] (CDI-499) Firing events asynchronously<br>
&gt;&gt; To: <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt;&gt; Message-ID:<br>
&gt;&gt;         &lt;JIRA.12561330.1421835166000.18078.1421842009269@Atlassian.JIRA&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=UTF-8<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;     [<br>
&gt;&gt; <a href="https://issues.jboss.org/browse/CDI-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=13034058#comment-13034058" target="_blank">https://issues.jboss.org/browse/CDI-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=13034058#comment-13034058</a><br>
&gt;&gt; ]<br>
&gt;&gt;<br>
&gt;&gt; Jozef Hartinger commented on CDI-499:<br>
&gt;&gt; -------------------------------------<br>
&gt;&gt;<br>
&gt;&gt; {quote}For backward compatibility reason the possibility to invoke an<br>
&gt;&gt; observer asynchronously should be let to the observer{quote}<br>
&gt;&gt; What exactly are the reasons for this? I can think of one:<br>
&gt;&gt; - observer method injecting a @RequestScoped (or similar) bean<br>
&gt;&gt; Are there other arguments for this?<br>
&gt;&gt;<br>
&gt;&gt; {quote}3. Observer bound to a transaction phase<br>
&gt;&gt; these observer will be invoked in the right transaction phase but<br>
&gt;&gt; asynchronously{quote}<br>
&gt;&gt; How&#39;s that different from Event.fire()?<br>
&gt;&gt;<br>
&gt;&gt; &gt; Firing events asynchronously<br>
&gt;&gt; &gt; -----------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;                 Key: CDI-499<br>
&gt;&gt; &gt;                 URL: <a href="https://issues.jboss.org/browse/CDI-499" target="_blank">https://issues.jboss.org/browse/CDI-499</a><br>
&gt;&gt; &gt;             Project: CDI Specification Issues<br>
&gt;&gt; &gt;          Issue Type: Feature Request<br>
&gt;&gt; &gt;          Components: Events<br>
&gt;&gt; &gt;    Affects Versions: 1.2.Final<br>
&gt;&gt; &gt;            Reporter: Antoine Sabot-Durand<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; We should allow a way to fire event asynchronously. This mechanism<br>
&gt;&gt; should leverage new async API in JDK8 especially the {{CompletionStage}}<br>
&gt;&gt; interface.<br>
&gt;&gt; &gt; Our proposal is:<br>
&gt;&gt; &gt; h2. 1. Add {{fireAsync()}} method to {{Event}} and {{BeanManager}}<br>
&gt;&gt; &gt; Signature of the method on {{Event&lt;T&gt;}} would be<br>
&gt;&gt; &gt; {code:java}<br>
&gt;&gt; &gt; &lt;U extends T&gt; CompletionStage&lt;U&gt; fireAsync(U event);<br>
&gt;&gt; &gt; {code}<br>
&gt;&gt; &gt; Signature on {{BeanManager}} would be<br>
&gt;&gt; &gt; {code:java}<br>
&gt;&gt; &gt; &lt;T&gt; CompletionStage&lt;T&gt; fireAsyncEvent(T event, Annotation... qualifiers)<br>
&gt;&gt; &gt; {code}<br>
&gt;&gt; &gt; h2. 2. Add an {{asyncSupported()}} member to {{@Observes}}<br>
&gt;&gt; &gt; For backward compatibility reason the possibility to invoke an observer<br>
&gt;&gt; asynchronously should be let to the observer (legacy observers should be<br>
&gt;&gt; called synchronously). We propose to add the boolean {{asyncSupported()}}<br>
&gt;&gt; member with the {{false}} default value to support this backward<br>
&gt;&gt; compatibility aspect.<br>
&gt;&gt; &gt; So to be notified asynchronously an observer should have<br>
&gt;&gt; {{asyncSupported}} member to true. otherwise it will be called<br>
&gt;&gt; synchronously.<br>
&gt;&gt; &gt; h2. 3. Observer bound to a transaction phase<br>
&gt;&gt; &gt; these observer will be invoked in the right transaction phase but<br>
&gt;&gt; asynchronously<br>
&gt;&gt; &gt; h2. 4. Event Ordering<br>
&gt;&gt; &gt; Should we decide to add events ordering in CDI 2.0, the order will be<br>
&gt;&gt; keep in asynchronous observer notification. If there are a mix of<br>
&gt;&gt; synchronous and asynchronous observer, asynchronous will be called first in<br>
&gt;&gt; order, then synchronous in their order (async has priority on sync).<br>
&gt;&gt; &gt; h2. 5. Event state (payload mutability)<br>
&gt;&gt; &gt; We&#39;ll keep payload mutability with async events (but should explicitly<br>
&gt;&gt; specify it). That means  that we should guarantee the event state<br>
&gt;&gt; consistency between observers and in case of ordered observers the fact<br>
&gt;&gt; that observer N+1 get the event state at the end of observer N.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; This message was sent by Atlassian JIRA<br>
&gt;&gt; (v6.3.11#6341)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<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" 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" 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; End of cdi-dev Digest, Vol 50, Issue 42<br>
&gt;&gt; ***************************************<br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; cdi-dev mailing list<br>
&gt; <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" 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" 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>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.jboss.org/pipermail/cdi-dev/attachments/20150121/eb5a3559/attachment-0001.html" target="_blank">http://lists.jboss.org/pipermail/cdi-dev/attachments/20150121/eb5a3559/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 21 Jan 2015 16:20:46 +0100<br>
From: Antoine Sabot-Durand &lt;<a href="mailto:antoine@sabot-durand.net">antoine@sabot-durand.net</a>&gt;<br>
Subject: Re: [cdi-dev] Building EJB-like @Asynchronous via interceptor<br>
        in CDI<br>
To: &quot;<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>&quot; &lt;<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:2D5C8B76-F389-4CE3-92F6-E48EFA0BE8D6@sabot-durand.net">2D5C8B76-F389-4CE3-92F6-E48EFA0BE8D6@sabot-durand.net</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
Hi Guys,<br>
<br>
Remember that CDI 2.0 will require JDK8. So user will have very powerful asynchronous feature out of the box with the CompletableFuture class. So I wonder if we should really focus on this @Asynhcronous annotation and it?s right JSR ?<br>
Whatever we decide here, the first point we should work on IMO is specifying how contexts will be propagated (or not) during async operations.<br>
<br>
Antoine<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: signature.asc<br>
Type: application/pgp-signature<br>
Size: 495 bytes<br>
Desc: Message signed with OpenPGP using GPGMail<br>
Url : <a href="http://lists.jboss.org/pipermail/cdi-dev/attachments/20150121/9036a06f/attachment-0001.bin" target="_blank">http://lists.jboss.org/pipermail/cdi-dev/attachments/20150121/9036a06f/attachment-0001.bin</a><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Wed, 21 Jan 2015 16:25:44 +0100<br>
From: Antoine Sabot-Durand &lt;<a href="mailto:antoine@sabot-durand.net">antoine@sabot-durand.net</a>&gt;<br>
Subject: Re: [cdi-dev] [JBoss JIRA] (CDI-499) Firing events<br>
        asynchronously<br>
To: Werner Keil &lt;<a href="mailto:werner.keil@gmail.com">werner.keil@gmail.com</a>&gt;<br>
Cc: cdi-dev &lt;<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:70D7164E-3C68-46A9-9BCC-F737E5385C85@sabot-durand.net">70D7164E-3C68-46A9-9BCC-F737E5385C85@sabot-durand.net</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
My concern is too avoid creating a new EJB spec with CDI 2. Managing async operation is now very simple for end user with java 8, so do we have to add annotation to support it. I wonder.<br>
<br>
Antoine Sabot-Durand<br>
<br>
&gt; Le 21 janv. 2015 ? 16:07, Werner Keil &lt;<a href="mailto:werner.keil@gmail.com">werner.keil@gmail.com</a>&gt; a ?crit :<br>
&gt;<br>
&gt; Hi Antoine,<br>
&gt;<br>
&gt; It seems the exact place for that is still to be found, but even if these are separate threads in parallel the fact that CDI 2 aims to add support for async events means anything other JSRs cannot do or don&#39;t want to do (see Bill&#39;s remark on resources in other JSRs) would fit into CDI 2 as long as the resource situation here isn&#39;t too critical either of course;-)<br>
&gt;<br>
&gt; That&#39;s what I wanted to say.<br>
&gt;<br>
&gt; Werner<br>
&gt;<br>
&gt;&gt; On Wed, Jan 21, 2015 at 4:01 PM, Antoine Sabot-Durand &lt;<a href="mailto:antoine@sabot-durand.net">antoine@sabot-durand.net</a>&gt; wrote:<br>
&gt;&gt; Hi Werner,<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; No, it doesn?t cover @Asynchronous or @Async annotation. Discussion about async operation support in CDI 2.0 is another subject.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; Le 21 janv. 2015 ? 13:52, Werner Keil &lt;<a href="mailto:werner.keil@gmail.com">werner.keil@gmail.com</a>&gt; a ?crit :<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Antoine/all,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Is it safe to assume any recent discussion about an @Asynchronous annotation would be covered there unless e.g. EJB itself needs it to be updated for EE 8?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Werner<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Wed, Jan 21, 2015 at 1:06 PM, &lt;<a href="mailto:cdi-dev-request@lists.jboss.org">cdi-dev-request@lists.jboss.org</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt; Send cdi-dev mailing list submissions to<br>
&gt;&gt;&gt;&gt;         <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt;&gt;&gt;&gt;         <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
&gt;&gt;&gt;&gt; or, via email, send a message with subject or body &#39;help&#39; to<br>
&gt;&gt;&gt;&gt;         <a href="mailto:cdi-dev-request@lists.jboss.org">cdi-dev-request@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; You can reach the person managing the list at<br>
&gt;&gt;&gt;&gt;         <a href="mailto:cdi-dev-owner@lists.jboss.org">cdi-dev-owner@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; When replying, please edit your Subject line so it is more specific<br>
&gt;&gt;&gt;&gt; than &quot;Re: Contents of cdi-dev digest...&quot;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Today&#39;s Topics:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;    1. [JBoss JIRA] (CDI-499) Firing events asynchronously<br>
&gt;&gt;&gt;&gt;       (Antoine Sabot-Durand (JIRA))<br>
&gt;&gt;&gt;&gt;    2. [JBoss JIRA] (CDI-31) Asynchronous events<br>
&gt;&gt;&gt;&gt;       (Antoine Sabot-Durand (JIRA))<br>
&gt;&gt;&gt;&gt;    3. [JBoss JIRA] (CDI-499) Firing events asynchronously<br>
&gt;&gt;&gt;&gt;       (Antoine Sabot-Durand (JIRA))<br>
&gt;&gt;&gt;&gt;    4. [JBoss JIRA] (CDI-499) Firing events asynchronously<br>
&gt;&gt;&gt;&gt;       (Antoine Sabot-Durand (JIRA))<br>
&gt;&gt;&gt;&gt;    5. [JBoss JIRA] (CDI-499) Firing events asynchronously<br>
&gt;&gt;&gt;&gt;       (Jos? Paumard (JIRA))<br>
&gt;&gt;&gt;&gt;    6. [JBoss JIRA] (CDI-499) Firing events asynchronously<br>
&gt;&gt;&gt;&gt;       (Jozef Hartinger (JIRA))<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;<br>
&gt;&gt;&gt;&gt; Message: 6<br>
&gt;&gt;&gt;&gt; Date: Wed, 21 Jan 2015 07:06:49 -0500 (EST)<br>
&gt;&gt;&gt;&gt; From: &quot;Jozef Hartinger (JIRA)&quot; &lt;<a href="mailto:issues@jboss.org">issues@jboss.org</a>&gt;<br>
&gt;&gt;&gt;&gt; Subject: [cdi-dev] [JBoss JIRA] (CDI-499) Firing events asynchronously<br>
&gt;&gt;&gt;&gt; To: <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt; Message-ID:<br>
&gt;&gt;&gt;&gt;         &lt;JIRA.12561330.1421835166000.18078.1421842009269@Atlassian.JIRA&gt;<br>
&gt;&gt;&gt;&gt; Content-Type: text/plain; charset=UTF-8<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;     [ <a href="https://issues.jboss.org/browse/CDI-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=13034058#comment-13034058" target="_blank">https://issues.jboss.org/browse/CDI-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=13034058#comment-13034058</a> ]<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Jozef Hartinger commented on CDI-499:<br>
&gt;&gt;&gt;&gt; -------------------------------------<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; {quote}For backward compatibility reason the possibility to invoke an observer asynchronously should be let to the observer{quote}<br>
&gt;&gt;&gt;&gt; What exactly are the reasons for this? I can think of one:<br>
&gt;&gt;&gt;&gt; - observer method injecting a @RequestScoped (or similar) bean<br>
&gt;&gt;&gt;&gt; Are there other arguments for this?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; {quote}3. Observer bound to a transaction phase<br>
&gt;&gt;&gt;&gt; these observer will be invoked in the right transaction phase but asynchronously{quote}<br>
&gt;&gt;&gt;&gt; How&#39;s that different from Event.fire()?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &gt; Firing events asynchronously<br>
&gt;&gt;&gt;&gt; &gt; -----------------------------<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt;                 Key: CDI-499<br>
&gt;&gt;&gt;&gt; &gt;                 URL: <a href="https://issues.jboss.org/browse/CDI-499" target="_blank">https://issues.jboss.org/browse/CDI-499</a><br>
&gt;&gt;&gt;&gt; &gt;             Project: CDI Specification Issues<br>
&gt;&gt;&gt;&gt; &gt;          Issue Type: Feature Request<br>
&gt;&gt;&gt;&gt; &gt;          Components: Events<br>
&gt;&gt;&gt;&gt; &gt;    Affects Versions: 1.2.Final<br>
&gt;&gt;&gt;&gt; &gt;            Reporter: Antoine Sabot-Durand<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; We should allow a way to fire event asynchronously. This mechanism should leverage new async API in JDK8 especially the {{CompletionStage}} interface.<br>
&gt;&gt;&gt;&gt; &gt; Our proposal is:<br>
&gt;&gt;&gt;&gt; &gt; h2. 1. Add {{fireAsync()}} method to {{Event}} and {{BeanManager}}<br>
&gt;&gt;&gt;&gt; &gt; Signature of the method on {{Event&lt;T&gt;}} would be<br>
&gt;&gt;&gt;&gt; &gt; {code:java}<br>
&gt;&gt;&gt;&gt; &gt; &lt;U extends T&gt; CompletionStage&lt;U&gt; fireAsync(U event);<br>
&gt;&gt;&gt;&gt; &gt; {code}<br>
&gt;&gt;&gt;&gt; &gt; Signature on {{BeanManager}} would be<br>
&gt;&gt;&gt;&gt; &gt; {code:java}<br>
&gt;&gt;&gt;&gt; &gt; &lt;T&gt; CompletionStage&lt;T&gt; fireAsyncEvent(T event, Annotation... qualifiers)<br>
&gt;&gt;&gt;&gt; &gt; {code}<br>
&gt;&gt;&gt;&gt; &gt; h2. 2. Add an {{asyncSupported()}} member to {{@Observes}}<br>
&gt;&gt;&gt;&gt; &gt; For backward compatibility reason the possibility to invoke an observer asynchronously should be let to the observer (legacy observers should be called synchronously). We propose to add the boolean {{asyncSupported()}} member with the {{false}} default value to support this backward compatibility aspect.<br>
&gt;&gt;&gt;&gt; &gt; So to be notified asynchronously an observer should have {{asyncSupported}} member to true. otherwise it will be called synchronously.<br>
&gt;&gt;&gt;&gt; &gt; h2. 3. Observer bound to a transaction phase<br>
&gt;&gt;&gt;&gt; &gt; these observer will be invoked in the right transaction phase but asynchronously<br>
&gt;&gt;&gt;&gt; &gt; h2. 4. Event Ordering<br>
&gt;&gt;&gt;&gt; &gt; Should we decide to add events ordering in CDI 2.0, the order will be keep in asynchronous observer notification. If there are a mix of synchronous and asynchronous observer, asynchronous will be called first in order, then synchronous in their order (async has priority on sync).<br>
&gt;&gt;&gt;&gt; &gt; h2. 5. Event state (payload mutability)<br>
&gt;&gt;&gt;&gt; &gt; We&#39;ll keep payload mutability with async events (but should explicitly specify it). That means  that we should guarantee the event state consistency between observers and in case of ordered observers the fact that observer N+1 get the event state at the end of observer N.<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; This message was sent by Atlassian JIRA<br>
&gt;&gt;&gt;&gt; (v6.3.11#6341)<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; _______________________________________________<br>
&gt;&gt;&gt;&gt; cdi-dev mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" 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 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.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; End of cdi-dev Digest, Vol 50, Issue 42<br>
&gt;&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">cdi-dev@lists.jboss.org</a><br>
&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" 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 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.<br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.jboss.org/pipermail/cdi-dev/attachments/20150121/3ffd155b/attachment.html" target="_blank">http://lists.jboss.org/pipermail/cdi-dev/attachments/20150121/3ffd155b/attachment.html</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
cdi-dev mailing list<br>
<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" 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" 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>
End of cdi-dev Digest, Vol 50, Issue 45<br>
***************************************<br>
</blockquote></div><br></div></div>