|Factory create entitiymanager container [message #1796063]
||Thu, 04 October 2018 15:34
| Tomas Jacobsson
Registered: October 2018
I´m trying to create a factory to create entitymangers that lives in a transaction scope in weblogic 10.3.6.|
I´m able to create it and join a jta transaction but the entitymanger is not closed when the transaction commits.
I eclipselink.persistence-context.close-on-commit to true and eclipselink.target-server = WebLogic_10
<property name="eclipselink.target-server" value="WebLogic_10"/>
<property name="eclipselink.persistence-context.close-on-commit" value="true"/>
I create the
EntityManager entityManager= Persistence.createEntityManagerFactory(persistentEnhet);
It commits database on transaction commit but the entitymanager is still open.
Why I´m creating entitymanager with factory and not with annotations is
The stateless class is genererated and have multiple persistenceUnitNames och when it creates cannot know which units is available in that context.
What am I doing wrong?
Powered by FUDForum
. Page generated in 0.02068 seconds