New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Container managed transactions: Lookup of java:comp/UserTransaction not allowed for Container managed Transaction beans #651
Comments
@tsbatista check this out Most of JTA implementation like atomikos, hibernate one etc are bound with JDBC API which is not applicable in case of NoSQL databases and Kundera. So Kundera brings in its own implementation of JTA transaction and which would require to define binding
With tomcat you can easily bind this, but for EJB containers i can't find a way for the same. Would definitely like to know your views/suggestions on this! -Vivek |
I dont have much time right now. I will look at this during the weekend and get back to you if I have any ideas. |
@tsbatista let's keep it open for discussion. Would appreciate your views whenever you get some time to discuss. -Vivek |
Hi, I've started to test Kundera along with TomEE and have met a couple of issues, and maybe related to this discussion.
I asked TomEE dev's if it's possible to fix this by using resources og setting system properties, but Romain (at TomEE) suggested this: The easiest is to ask kundera to support a Side note: this is more or less what does all JPA provider: having a Would this be doable? br hw |
@hwaastad -Vivek |
Hi, sure, |
@hwaastad -Vivek |
Hi, Edit: Pretty simple implementation just for providing the error described br hw |
@mevivs br hw |
This illustrates what I think is wrong:
https://github.com/tsbatista/kundera-cmt
Basically, if I try to use kundera and CMT under glassfish, it breaks as you try to lookup a user transaction here: https://github.com/impetus-opensource/Kundera/blob/273c13342ddd1aceed0cd23504649926ce8fdb84/src/jpa-engine/core/src/main/java/com/impetus/kundera/persistence/EntityManagerImpl.java#L858
Is there any way to use CMT on glassfish?
The text was updated successfully, but these errors were encountered: