Re: TomeEE/OpenEJB question on implementation

2014-11-28 Thread Lars-Fredrik Smedberg
Thanks for the answer... yes I understood from some earlier mails between you, Mark S and me that there were no inheritence could be nice to have in some cases but I assume it causes some headaches when the new thread might live longer than the ongoing request. Regards LF On Fri, Nov 28, 2014

Re: TomeEE/OpenEJB question on implementation

2014-11-28 Thread Romain Manni-Bucau
2014-11-28 9:26 GMT+01:00 Lars-Fredrik Smedberg : > Oh, so by request scoped wrapped you mean simply pull out whatever data I > need from the scoped beans before I call the async method? > sure "message passing" pettern > About async ejb methods and CDI I read JSR299 (which we depend on) and in >

Re: TomeEE/OpenEJB question on implementation

2014-11-28 Thread Lars-Fredrik Smedberg
Oh, so by request scoped wrapped you mean simply pull out whatever data I need from the scoped beans before I call the async method? About async ejb methods and CDI I read JSR299 (which we depend on) and in 6.7.1 and 6.7.3 I think it says request and application context are valid for any asyn ejb

Re: TomeEE/OpenEJB question on implementation

2014-11-28 Thread Romain Manni-Bucau
Le 28 nov. 2014 08:49, "Lars-Fredrik Smedberg" a écrit : > > We do it by a dependent scope bean impl callable at the moment... and > resolve all req scope variables needed before calling the async method > > But concurrency spec allows only applicationsscope but async also > requestscope right

Re: TomeEE/OpenEJB question on implementation

2014-11-27 Thread Lars-Fredrik Smedberg
We do it by a dependent scope bean impl callable at the moment... and resolve all req scope variables needed before calling the async method But concurrency spec allows only applicationsscope but async also requestscope right? So my idea was that the factory that produces the req scoped beans

Re: TomeEE/OpenEJB question on implementation

2014-11-27 Thread Romain Manni-Bucau
Hehe you think like me when I started to impl concurrency utilities for ee...but spec forbids more or less it and it would break a lot. If that's just values idea is to use a dependent bean passed as message to the async method. To keep request scope you need a request scoped wrapper. Le 28 nov. 2

Re: TomeEE/OpenEJB question on implementation

2014-11-27 Thread Lars-Fredrik Smedberg
Romain, could you please explain what the usage of ThreadContext is? Today we have some @RequestScoped beans that are created from the HttpServletRequest (amongst other things). When executing the @Asynchronous EJB method I would like to be able to inject the same beans again (containing the same

Re: TomeEE/OpenEJB question on implementation

2014-11-27 Thread Lars-Fredrik Smedberg
Thanks Romain... will take a look at those... Regards LF On Fri, Nov 28, 2014 at 12:21 AM, Romain Manni-Bucau wrote: > > tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/ivm/EjbHomeProxyHandler.java > > > tomee/tomee/trunk/container/openejb-core/src/main/java/org/a

Re: TomeEE/OpenEJB question on implementation

2014-11-27 Thread Romain Manni-Bucau
tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/ivm/EjbHomeProxyHandler.java tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/ivm/EjbObjectProxyHandler.java Le 28 nov. 2014 00:18, "Lars-Fredrik Smedberg" a écrit : > Thanks... What sour

Re: TomeEE/OpenEJB question on implementation

2014-11-27 Thread Lars-Fredrik Smedberg
Thanks... What source code can I look at? Regards LF On Thu, Nov 27, 2014 at 11:29 PM, Romain Manni-Bucau wrote: > It basically just does executorService.execute(new OpenEjbMethod(method, > securitycontext)) > Le 27 nov. 2014 22:12, "Lars-Fredrik Smedberg" a > écrit > : > > > Hi! > > > > I wou

Re: TomeEE/OpenEJB question on implementation

2014-11-27 Thread Romain Manni-Bucau
It basically just does executorService.execute(new OpenEjbMethod(method, securitycontext)) Le 27 nov. 2014 22:12, "Lars-Fredrik Smedberg" a écrit : > Hi! > > I would like to understand how TomEE/OpenEJB implements @Asynchronous EJB > Methods > > Can anyone perhaps give me a short descriptions

TomeEE/OpenEJB question on implementation

2014-11-27 Thread Lars-Fredrik Smedberg
Hi! I would like to understand how TomEE/OpenEJB implements @Asynchronous EJB Methods Can anyone perhaps give me a short descriptions and the point to what source code classes to look at? Regards LF -- Med vänlig hälsning / Best regards Lars-Fredrik Smedberg STATEMENT OF CONFIDENTIALITY: