<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>In parallel to whatever does or does not happen here, want to take up this discussion in the Java EE 8 EG? It will be good since you are an EG member and also had involvement in the EC. I think for now you can mention Stephan as a spec lead from the community with maybe Oracle being a co-spec lead to help ease any IP heartache that Oracle might get from this. What would be awesome of course is if Red Hat proposed to do this work and took over one more JSR from Oracle, but I won't hold my breadth on that one :-).</div><div><br>On Feb 26, 2016, at 11:39 AM, Werner Keil <<a href="mailto:werner.keil@gmail.com">werner.keil@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Reza/all,<div><br></div><div>One of the biggest problems with can Concurrency Utilities is, that it started in 2003, then went "dormant" (before the term existed) and was revived to be finalized 10 years later after little or no proper alignment with then state of the art Java EE standards and technologies. It duplicates things, especially in EJB or CDI. </div><div><br></div><div>Similar to the even older JSR 107 which also has similar problems and technical debt (as members of this and other EGs confirmed or expressed their concern) </div><div>We can't undo many of these problems, but it seems both these "relics" need at the very least a solid MR if not entirely new JSRs (before EE 8 wraps up the selected features) to address their age and fit in more nicely into the recent platform) JMS 2 did a great job in that direction and even has a new JSR for Java EE 8. </div><div><br></div><div>Regards,</div><div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><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"><p style="margin:0px;border-collapse:collapse"><font face="arial, helvetica, sans-serif" size="1"><span lang="EN-US">Werner </span></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Feb 26, 2016 at 12:40 PM, <span dir="ltr"><<a href="mailto:cdi-dev-request@lists.jboss.org" target="_blank">cdi-dev-request@lists.jboss.org</a>></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">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 'help' 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 "Re: Contents of cdi-dev digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Concurrency Control (Reza Rahman)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 26 Feb 2016 06:40:38 -0500<br>
From: Reza Rahman <<a href="mailto:reza_rahman@lycos.com">reza_rahman@lycos.com</a>><br>
Subject: Re: [cdi-dev] Concurrency Control<br>
To: Emily Jiang <<a href="mailto:EMIJIANG@uk.ibm.com">EMIJIANG@uk.ibm.com</a>><br>
Cc: <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
Message-ID: <<a href="mailto:7313A4E6-24FA-4427-964A-BADF7FBE4FB8@lycos.com">7313A4E6-24FA-4427-964A-BADF7FBE4FB8@lycos.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
No objections whatsoever. I will put in the JIRAs ASAP so we can give this the attention it deserves.<br>
<br>
> On Feb 26, 2016, at 4:32 AM, Emily Jiang <<a href="mailto:EMIJIANG@uk.ibm.com">EMIJIANG@uk.ibm.com</a>> wrote:<br>
><br>
> Hi Reza,<br>
><br>
> I understand your frustration. I would suggest you raising a CDI jira to get all options discussed. Any objections?<br>
><br>
> Many thanks,<br>
> Emily<br>
> ===========================<br>
> Emily Jiang<br>
> WebSphere Application Server, CDI Development Lead<br>
><br>
> MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN<br>
> Phone: <a href="tel:%2B44%20%280%291962%20816278" value="+441962816278">+44 (0)1962 816278</a> Internal: 246278<br>
><br>
> Email: <a href="mailto:emijiang@uk.ibm.com">emijiang@uk.ibm.com</a><br>
> Lotus Notes: Emily Jiang/UK/IBM@IBMGB<br>
><br>
><br>
><br>
><br>
> From: Reza Rahman <<a href="mailto:reza_rahman@lycos.com">reza_rahman@lycos.com</a>><br>
> To: Emily Jiang/UK/IBM@IBMGB,<br>
> Cc: <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
> Date: 25/02/2016 23:01<br>
> Subject: Re: [cdi-dev] Concurrency Control<br>
> Sent by: <a href="mailto:cdi-dev-bounces@lists.jboss.org">cdi-dev-bounces@lists.jboss.org</a><br>
><br>
><br>
><br>
> This is not just a problem with this one feature but a much broader one involving @Asynchronous, @Schedule and many others. Simply punting on this problem and not dealing with this class of problems vigorously is rather foolish. It winds up doing what it has done for years - undermining pretty much all efforts related to Java EE, especially compared to the velocity and effectiveness by which the clear competitors to everything Java EE solve these issues. In the end, we are collectively to blame for the dismal state of affairs in Java EE land because of this sort of thing.<br>
><br>
> On Feb 25, 2016, at 4:18 PM, Emily Jiang <<a href="mailto:EMIJIANG@uk.ibm.com">EMIJIANG@uk.ibm.com</a>> wrote:<br>
><br>
> It would be nice if JavaEE Concurrency defines @Lock as a CDI interceptor, similar to @Transactional . Since the JavaEE Concurrency spec is stale as per you and Raze point out, how about experiment in DeltaSpike? If DeltaSpike provides the support of @Lock, maybe it can be pushed to JavaEE concurrency as part of EE8 update. If not, maybe CDI should define an addendum for EE integration. I think we should seriously think about this.<br>
><br>
><br>
><br>
> Many thanks,<br>
> Emily<br>
> ===========================<br>
> Emily Jiang<br>
> WebSphere Application Server, CDI Development Lead<br>
><br>
> MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN<br>
> Phone: <a href="tel:%2B44%20%280%291962%20816278" value="+441962816278">+44 (0)1962 816278</a> Internal: 246278<br>
><br>
> Email: <a href="mailto:emijiang@uk.ibm.com">emijiang@uk.ibm.com</a><br>
> Lotus Notes: Emily Jiang/UK/IBM@IBMGB<br>
><br>
><br>
><br>
><br>
> From: Stephan Knitelius <<a href="mailto:stephan@knitelius.com">stephan@knitelius.com</a>><br>
> To: Reza Rahman <<a href="mailto:reza_rahman@lycos.com">reza_rahman@lycos.com</a>>, Martin Kouba <<a href="mailto:mkouba@redhat.com">mkouba@redhat.com</a>>,<br>
> Cc: <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
> Date: 25/02/2016 20:26<br>
> Subject: Re: [cdi-dev] Concurrency Control<br>
> Sent by: <a href="mailto:cdi-dev-bounces@lists.jboss.org">cdi-dev-bounces@lists.jboss.org</a><br>
><br>
><br>
><br>
> Hi Martin,<br>
><br>
> yes this particular issue is about concurrent access control. You are right in pointing out that the lock should be applied<br>
> to the whole been and only override-able on a per method basis (similar to EJB Singleton style locking).<br>
><br>
> Regarding conversation context, its fair enough to point-out that weld allows for configure the conversation lock timeout.<br>
> However this is only true for Weld, this should really be made part of the specification.<br>
><br>
> Even if we were to specify a standard way to configure conversation locked timeouts in the CDI specification, it would<br>
> still make the conversation scope the odd one out of the lot. Hence it would be more sensible to design a<br>
> common way to handle concurrent access.<br>
><br>
> Also I would argue that you cannot implement a common concurrent access control via interceptors,<br>
> since the container will preempt any interceptor based attempt for conversation scoped beans.<br>
><br>
> As Reza pointed out Oracle has no intend to reopen "Concurrency Utilities for Java EE" at this time and is not<br>
> willing to hand it over to anyone else. The same seems to be true for JTA.<br>
><br>
> Stephan<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> On Thu, 25 Feb 2016 at 15:50 Reza Rahman <<a href="mailto:reza_rahman@lycos.com">reza_rahman@lycos.com</a>> wrote:<br>
> Oracle has pretty much clearly stated it has absolutely no intention of updating the Java EE Concurrency Utilities specification any time soon. My guess is that it will also never allow anyone else to update it either since it owns that specification. If this is a valuable feature to the community (which I definitely think it is) I strongly suggest taking advantage of the fact that this is a gray area and include it in a modular CDI specification so this feature doesn't continue to remain locked into EJB for Java EE users that need to more effectively use things like @Stereotype for service composition.<br>
><br>
> > On Feb 25, 2016, at 9:13 AM, Martin Kouba <<a href="mailto:mkouba@redhat.com">mkouba@redhat.com</a>> wrote:<br>
> ><br>
> > Hi Stephan,<br>
> ><br>
> > I like the idea of CDI interceptor solution you're proposing in your<br>
> > blogpost [1]. However, concurrency is a difficult topic. First of all,<br>
> > this only solves concurrent access to the bean instance (i.e.<br>
> > method-level locking) - the bean state is always up to the user. Also<br>
> > I'm not so sure it's a good idea to only apply @Lock at the method level<br>
> > (some methods are guarded some not - AFAIK EJB does not allow this either).<br>
> ><br>
> > I agree that conversation concurrentAccessTimeout in Weld should be<br>
> > configurable. In fact, it should be possible to change this timeout even<br>
> > now using Weld API and org.jboss.weld.context.ConversationContext. But<br>
> > it should be definitely more straightforward [2].<br>
> ><br>
> > To sum it up - I wouldn't add concurrency control to the spec provided<br>
> > it's implementable using interceptors. This is a similar situation as to<br>
> > javax.transaction.Transactional and JTA. The best place to specify this<br>
> > is IMHO "Concurrency Utilities for Java EE".<br>
> ><br>
> > Martin<br>
> ><br>
> > [1]<br>
> > <a href="http://www.knitelius.com/2016/01/25/concurrency-control-for-cdi/" rel="noreferrer" target="_blank">http://www.knitelius.com/2016/01/25/concurrency-control-for-cdi/</a><br>
> ><br>
> > [2]<br>
> > <a href="https://issues.jboss.org/browse/WELD-2113" rel="noreferrer" target="_blank">https://issues.jboss.org/browse/WELD-2113</a><br>
> ><br>
> > Dne 24.2.2016 v 20:47 Stephan Knitelius napsal(a):<br>
> >> I just want to bring this to everyone attention one more time.<br>
> >><br>
> >> The conversation scope concurrency control mechanism seems to be a<br>
> >> frequent point of pain in many projects.<br>
> >><br>
> >> Especially when working with browser triggered asynchronous requests,<br>
> >> you can not rely on client-sided request synchronization.<br>
> >> Weld, unlike OWB, grants a 1 second timeout prior to throwing a (the<br>
> >> specified) BusyConversationException mitigating the effect a bit.<br>
> >><br>
> >> This is a rather strict un-configurable type of CC. Also its<br>
> >> completely out of alignment with the other build-in scopes, offering no<br>
> >> CC what so ever.<br>
> >><br>
> >> In the cases of Session- and Application-Scope, thread handling is left<br>
> >> entirely to the developer, even so they are just as vulnerable in AJAX<br>
> >> environments.<br>
> >><br>
> >> We should really consider introducing a common configurable mechanism,<br>
> >> that is aligned across all scopes (obviously accounting for backwards<br>
> >> compatibility in the case of conversation scope).<br>
> >><br>
> >> Would really appreciate some feedback.<br>
> >><br>
> >> Kind regards,<br>
> >><br>
> >> Stephan<br>
> >><br>
> >><br>
> >><br>
> >><br>
> >> On Mon, 22 Feb 2016 at 23:10 Reza Rahman <<a href="mailto:Reza.Rahman@oracle.com">Reza.Rahman@oracle.com</a><br>
> >> <mailto:<a href="mailto:Reza.Rahman@oracle.com">Reza.Rahman@oracle.com</a>>> wrote:<br>
> >><br>
> >> We've discussed this issue before. I definitely still think @Lock<br>
> >> belongs in a modular CDI specification. It would be highly useful to<br>
> >> both @Singleton and @ApplicationScoped. Today if I need to use<br>
> >> declarative concurrency control for a shared component I am<br>
> >> essentially forced to use EJB singleton - which shouldn't be the<br>
> >> case and perhaps should not have been the case past Java EE 6.<br>
> >><br>
> >><br>
> >>> On 2/19/2016 5:27 AM, Stephan Knitelius wrote:<br>
> >>> Hi all,<br>
> >>><br>
> >>> CDI spec does not define a common concurrency control mechanism.<br>
> >>> The time any type of concurrency control is mentioned is in<br>
> >>> conjunction with EJB and a rather restrictive one for conversation<br>
> >>> context.<br>
> >>><br>
> >>> CDI Spec:<br>
> >>> The container ensures that a long-running conversation may be<br>
> >>> associated with at most one request at a time, by blocking or<br>
> >>> rejecting concurrent requests. If the container rejects a request,<br>
> >>> it must associate the request with a new transient conversation<br>
> >>> and throw an exception of<br>
> >>> type|javax.enterprise.context.BusyConversationException|.<br>
> >>><br>
> >>><br>
> >>> It would be helpful if a common configurable concurrency mechanism<br>
> >>> (EJB Singleton style locking?) could be established for all normal<br>
> >>> scopes.<br>
> >>><br>
> >>> What are your thoughts on this?<br>
> >>><br>
> >>> Regards,<br>
> >>><br>
> >>> Stephan<br>
> >>><br>
> >>><br>
> >>><br>
> >>><br>
> >>><br>
> >>><br>
> >>><br>
> >>><br>
> >>><br>
> >>><br>
> >>> ______________________________________<br>
> >>> *Stephan Knitelius*<br>
> >>> Alteburger Str. 274<br>
> >>> 50968 K?ln / Cologne<br>
> >>> Deutschland / Germany<br>
> >>> <a href="mailto:stephan@knitelius.com">stephan@knitelius.com</a> <mailto:<a href="mailto:stephan@knitelius.com">stephan@knitelius.com</a>><br>
> >>><br>
> >>><br>
> >>> _______________________________________________<br>
> >>> cdi-dev mailing list<br>
> >>> <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a> <mailto:<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" 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>
> >> _______________________________________________<br>
> >> cdi-dev mailing list<br>
> >> <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a> <mailto:<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" 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<br>
> >> the code under the Apache License, Version 2<br>
> >> (<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<br>
> >> ideas provided on this list, the provider waives all patent and<br>
> >> other intellectual property rights inherent in such information.<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" 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>
> > --<br>
> > Martin Kouba<br>
> > Software Engineer<br>
> > Red Hat, Czech Republic<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" 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>
> 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" 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>
> Unless stated otherwise above:<br>
> IBM United Kingdom Limited - Registered in England and Wales with number 741598.<br>
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU_______________________________________________<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" 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>
> Unless stated otherwise above:<br>
> IBM United Kingdom Limited - Registered in England and Wales with number 741598.<br>
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.jboss.org/pipermail/cdi-dev/attachments/20160226/525ab6e5/attachment.html" rel="noreferrer" target="_blank">http://lists.jboss.org/pipermail/cdi-dev/attachments/20160226/525ab6e5/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" 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>
End of cdi-dev Digest, Vol 63, Issue 36<br>
***************************************<br>
</blockquote></div><br></div></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>cdi-dev mailing list</span><br><span><a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/cdi-dev">https://lists.jboss.org/mailman/listinfo/cdi-dev</a></span><br><span></span><br><span>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.</span></div></blockquote></body></html>