Create a gist now

Instantly share code, notes, and snippets.

public class EntityManagerProducer implements Serializable {
private static final long serialVersionUID = -8275317247692627840L;
private EntityManagerFactory entityManagerFactory;
public EntityManager getConversationalEntityManager() {
return entityManagerFactory.createEntityManager();
public void close(@Disposes EntityManager entityManager) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment