Simple project that shows how the JTA EntityManager is behaving in scope of JTA transactions when it's created using EntityManagerFactory.