I have just started migrating my homegrown persistence framework to JPA.
Given that the persistence frameworks hide a lot of the plumbing, I\'m interested in knowing
It depends how you obtained it.
If you created it using EntityManagerFactory you will have to close it no matter what framework you use.
If you obtained it using dependency injection (eg using EJB and @PersistenceContext annotation) you should not close it by hand (AFAIK it will cause RuntimeException).