users@glassfish.java.net

Re: TopLink: EntityManager.getTransaction() rolls back the transaction

From: <glassfish_at_javadesktop.org>
Date: Tue, 22 Jan 2008 14:12:20 PST

Well, this part really does not make sense, as the operation itself is non mutating. Hibernate and OpenJPA do not rollback, and I believe they passed the TCK :). Anyhow, this is really handy at knowing if you are under a JTA transaction or not, something having an external flag is yet another thing to bother the user with, which I hope to avoid.

Is there a different way of knowing this then?
[Message sent by forum member 'kimchy' (kimchy)]

http://forums.java.net/jive/thread.jspa?messageID=255224