- Select call leaking connections
EntityManagerFactory emf = Persistence.createEntityManagerFactory("foo"); EntityManager em = emf.createEntityManager(); Query query = em.createQuery("select bar from Bar);
Do we need to close EntityManager resources on a select call, will this leak a connection otherwise.