You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shouldn't entity managers be closed? I know that container managed entity managers cannot be closed by application as per the requirements stated in jpa spec. However, isn't it the case that the container should close it? entity managers are created by "EntityManagerFactory.createEntityManager" all the time, and these are described as creating application managed entity managers, so i guess container can close them, and would have to wrap them in a layer that prevents closing. Not sure how true that is.
The text was updated successfully, but these errors were encountered:
Hello and thanks for using microBean JPA CDI. As noted in the last paragraph of the README, this project is often deployed with a (necessarily) CDI-provider-specific counterpart (for Weld, this is microbean-jpa-weld-se). You'll note that the actual business of acquiring EntityManagers at runtime is not handled by this project, but by its counterpart.
It is not clear to me that an EntityManagercreated by the container with a JTA transaction type should ever be closed. Invoking operations on it when a transaction is not in effect will throw an error.
Shouldn't entity managers be closed? I know that container managed entity managers cannot be closed by application as per the requirements stated in jpa spec. However, isn't it the case that the container should close it? entity managers are created by "EntityManagerFactory.createEntityManager" all the time, and these are described as creating application managed entity managers, so i guess container can close them, and would have to wrap them in a layer that prevents closing. Not sure how true that is.
The text was updated successfully, but these errors were encountered: