Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » joinTransaction() opens transaction?(bug in eclipselink/geronimo)
joinTransaction() opens transaction? [message #1778919] Sun, 24 December 2017 08:24
Wolfgang Winter is currently offline Wolfgang WinterFriend
Messages: 3
Registered: December 2017
Junior Member

I have the following code running with eclipselink 2.7 on Tomee 7.0.2 (simplified):
      InitialContext context = new InitialContext();
      EntityManagerFactory containerEmf = (EntityManagerFactory) context.lookup("java:comp/env/Cibet");
      EntityManager entityManager = containerEmf.createEntityManager();
      Resource res = new JpaResource();

      try {
      } catch (TransactionRequiredException e) {"... but cannot join transaction: " + e.getMessage());


I get this exception on the second ut.begin():
javax.transaction.NotSupportedException: Nested Transactions are not supported
	at org.apache.geronimo.transaction.manager.TransactionManagerImpl.begin(
	at org.apache.geronimo.transaction.manager.TransactionManagerImpl.begin(

when I remove the joinTransaction() it works. With Eclipselink 2.4.2 on JPA 2.0 it worked too. It seems to me a bug
Previous Topic:Eclipselink sync rmi cache coordination and Database Change Notification in large scale project
Next Topic:Eclipselink assumes erroneous NoPlatform when target-server not set
Goto Forum:

Current Time: Wed Mar 21 09:17:23 GMT 2018

Powered by FUDForum. Page generated in 0.01575 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software