Differences between Container Managed and Application Managed EntityManager
问题 I have a problem to understand the differences between container-managed and application-managed entity manager? I would be very grateful if you can give me an example that illustrates the differences. 回答1: For a container-managed entity manager, the container manages the life-cycle of this entity manager. For an application-managed one, the application (meaning you, the programmer) manages this. A simple but very visible difference is that you must call close() on an application-managed