EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"foo\"); EntityManager em = emf.crea
Definitely, always close your EntityManagers.