This topic has not yet been written. The content below is from the topic description.
the container is responsible for the opening and closing of the entity manager (this is transparent to the application). It is also responsible for transaction boundaries.