Commits the transaction if it hasn't been marked for rollback.
Commits the transaction if it hasn't been marked for rollback.
The EntityManager
to close
Holds an InitialContext for use with JNDI.
Return the name of the configured persistence unit name
Return the name of the configured persistence unit name
The full JNDI binding for the managed EntityManager, such as "java:comp/env/persistence/myem".
Returns a newly created ScalaEntityManager
.
Returns a newly created ScalaEntityManager
. This is the method
that clients would typically use to obtain their EM.
A new ScalaEntityManager
instance.
Retrieves an EntityManager via JNDI and associates it with a JTA transaction.
Retrieves an EntityManager via JNDI and associates it with a JTA transaction.
An appropriately configured EntityManager
Returns the current UserTransaction retrieved from JNDI.
This class represents an EntityManager factory that is retrieved from JNDI, using JTA to handle transactions. An example of usage would be: