Re: A JTA EntityManager cannot use getTransaction()

2016-08-06 Thread Gerhard Petracek
@romain: +1 & thx (however, i'm not sure that we should mention some servers explicitly. that sounds like all other weld based servers are fine...) @nicolas: i don't see the issue with the initial version. some of our users proofread that part already and we can't list all the servers explicitly (

Re: A JTA EntityManager cannot use getTransaction()

2016-08-06 Thread Romain Manni-Bucau
My 2cts will be: info was there and will in the future misunderstood again (we didnt mention payara or tomee for instance). Since info is there it is fine to enhance it ondemand from now on IMHO (each server community has different users asking on different places so overdocumenting can just add no

Re: A JTA EntityManager cannot use getTransaction()

2016-08-06 Thread nicolasduminil
Please understand also that nobody said it was limited to META-INF/apache-deltaspike.properties. You probably missunderstood me. I'm not a native English speaker and, sometimes, I could be mistaken in my written expression. However, this time I think I was clear enough: *including but not limited t

Re: A JTA EntityManager cannot use getTransaction()

2016-08-06 Thread John D. Ament
Please also understand its not limited to META-INF/apache-deltaspike.properties, but any other config source you may have at runtime. On Sat, Aug 6, 2016 at 9:53 AM Romain Manni-Bucau wrote: > Updated the website, let me know if it is not better. > > > Romain Manni-Bucau > @rmannibucau

Re: A JTA EntityManager cannot use getTransaction()

2016-08-06 Thread Romain Manni-Bucau
Updated the website, let me know if it is not better. Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog | Github | LinkedIn

Re: A JTA EntityManager cannot use getTransaction()

2016-08-06 Thread nicolasduminil
I would propose the following: "In the case of some versions of Weld, including but not limited to Weld 1.1.36 which comes with JBoss EAP/Wildfly, or OpenWebBeans in BDA mode, you have to configure it as a global alternative instead of an alternative in beans.xml. That means you have to add either

Re: A JTA EntityManager cannot use getTransaction()

2016-08-06 Thread Romain Manni-Bucau
Le 6 août 2016 13:28, "nicolasduminil" a écrit : > > I'm sorry but I read too fast the log file. What happened is that another > exception is raised, but this one is related to my code. > > So finally, as opposed to what the documentation is saying, when used in a > CMT context, the transaction st

Re: A JTA EntityManager cannot use getTransaction()

2016-08-06 Thread nicolasduminil
I'm sorry but I read too fast the log file. What happened is that another exception is raised, but this one is related to my code. So finally, as opposed to what the documentation is saying, when used in a CMT context, the transaction strategy has to be configured *in the apache-deltaspike.propert

Re: A JTA EntityManager cannot use getTransaction()

2016-08-06 Thread Romain Manni-Bucau
Well it clearly states this is for weld and you use it - not sure what is unclear but happy to correct the wording if needed. If it didnt work with this it is either an issue on your side or an unknow big with your versions. Both cases - in particular first one - need a sample and not copied/paste

Re: A JTA EntityManager cannot use getTransaction()

2016-08-06 Thread nicolasduminil
Yes, I have seen this note and, what this is saying is that, in my case, I don't have to configure the transaction strategy in apache-deltaspike.properties, since I'm not using OpenWebBeans, neither in BDA mode, nore otherwise. But to make sure, I've added theis to my META-INF folder: globalAlter

Re: A JTA EntityManager cannot use getTransaction()

2016-08-06 Thread Romain Manni-Bucau
Quoting the doc: In case of some versions of Weld (or OpenWebBeans in BDA mode), you have to configure it as a global alternative instead of an alternative in beans.xml. That means you have to add, for example, globalAlternatives.org.apache.deltaspike.jpa.spi.transaction.TransactionStrategy =org.a

Re: A JTA EntityManager cannot use getTransaction()

2016-08-06 Thread nicolasduminil
"Check your stack: org.apache.deltaspike.jpa.impl.transaction.ResourceLocalTransactionStrategy is used for a JTA em so you didnt configure the transaction strategy. " Oh yes, I did. The post includes the following excerpt: http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XML

Re: A JTA EntityManager cannot use getTransaction()

2016-08-06 Thread Romain Manni-Bucau
Le 6 août 2016 11:03, "nicolasduminil" a écrit : > > "This is very unfair cause you have an issue so you have to show it ..." > No, it's not at all unfair as I posted the relevant part of the code. But > nobody looked at it. I could try to provide the minimum code to reproduce > the issue when I'l

Re: A JTA EntityManager cannot use getTransaction()

2016-08-06 Thread nicolasduminil
"This is very unfair cause you have an issue so you have to show it ..." No, it's not at all unfair as I posted the relevant part of the code. But nobody looked at it. I could try to provide the minimum code to reproduce the issue when I'll have the time. But when I'll have the time, it will mean e

Re: A JTA EntityManager cannot use getTransaction()

2016-08-06 Thread Romain Manni-Bucau
Le 6 août 2016 10:11, "nicolasduminil" a écrit : > > Gentlemen, > > I would like to notice that, while we are having arguments here concerning > the best manner to post stuff and to answer to them, my issue stays > unsolved. If I could provide a full project in GitHub, you may be sure that > I wou

Re: A JTA EntityManager cannot use getTransaction()

2016-08-06 Thread nicolasduminil
Gentlemen, I would like to notice that, while we are having arguments here concerning the best manner to post stuff and to answer to them, my issue stays unsolved. If I could provide a full project in GitHub, you may be sure that I would but, as any professional knows, this approach is often not p