If the IvyEntityManager is used in IvyScript e.g.:
ivy.persistence.<persistence unit name>.merge(...)
ivy.persistence.<persistence unit name>.persiste(...)
...
Then an connection and transation is created and after before the method returns the transaction is closed and the connection goes back to the connection pool.