Re: Please provide a working example for configuring any kind of resource-adapters in tomee!

2014-11-27 Thread rherschke
Hi Anthony, thanks for your reply. The problem isn't regarding the development of a JCA Resource Adapter, but about configuring and referencing it in Tomee. I see, the id-attributes in the ra.xml are neccessary to create the corresponding resources in the JNDI-Namespace. Next, I see, that there

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: How to propagate information through remote EJB calls

2014-11-27 Thread Jean-Louis Monteiro
Don't we have as well the data map for this? Could work much more easily than the javaagent. Le 28 nov. 2014 00:25, "Romain Manni-Bucau" a écrit : > Hi > > You want to add a tracker right? An interceptor could help associating call > id to the call (generated frm current params for instance) but

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: Please provide a working example for configuring any kind of resource-adapters in tomee!

2014-11-27 Thread Anthony Fryer
I worked on a JCA adapter recently in tomee so know what you're going through. I created a very basic JCA skeleton project that contains a very simple jca adapter and a single test case that loads the resource adapter in tomee and injects the connection factory. You can see this project here...

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: How to propagate information through remote EJB calls

2014-11-27 Thread Romain Manni-Bucau
Hi You want to add a tracker right? An interceptor could help associating call id to the call (generated frm current params for instance) but the best solution is a javaagent imo... Le 27 nov. 2014 21:39, "Steve Hostettler" a écrit : > Hello, > > I would like to have your input on the following

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:

remove files from local repo and remote repo on github and openshift repo git??

2014-11-27 Thread mauro2java2011
Hi all. First i know that my ask is off topic for this forum , but it is related to install tomee on openshift from a my git repo on github . I have read few tutorial for use git with eclipse and netbeans, how get locally a repo cloned from remote git ,add new files , commit them , and finally pus

How to propagate information through remote EJB calls

2014-11-27 Thread Steve Hostettler
Hello, I would like to have your input on the following problem: I have 2 EARs that communicate through remote EJBs. For business reason, I need to know what is the user language deep down in the stack. I also would like to use it transparently that is without changing the methods signature (addi