James Sutherland wrote: You can get a UnitOfWork from an EntityManager
I found the "getActiveSession()" from EntityManager, this seems to be the best way, but my Problem is that i use the EntityManager (as shown above) from javax.persistence.Persistence; . The additional functions to get the active Session and aquire a
unit of work just seems to be present for the entitymanager from Toplink self. The Problem is to get an Toplink-Entitymanager, i need the Factory, the Toplink-EntityManagerFactory need a ServerSession to create, and i am at the same position as above
. Or is there any opportunity to get the Session/UoW from the javax.persistence.Persistence.EntityManager; or "convert" this EntityManager in a Toplink-One?
Thanks a lot
Dominik