title: Vaadin JPAContainer JDBC Connection Usage
body: <p>Once one JPAContainer is created like</p>
  
  <p>JPAContainer users = JPAContainerFactory.make(User.class, "persistenceUnitName");</p>
  
  <p>Now I suppose that the "users" container will use one EntityManager which in turn uses one JDBC connection from the connection pool.</p>
  
  <p>That resource utilization (jdbc Connection attached to EntityManager attached to JPAContainer) happens during the lifetime of the httprequest or the usage of the entityManager/connection has another lifespan ?</p>
  
  <p>Can you please help me understand the gap between one JPAContainer instance and when and how jdbc connections are used through the EntityManager ?</p>
  
  <p>I read the vaadin jpa container tutorial and I don't find this information there.
  Thank you.</p>
  
  <p><a href="https://vaadin.com/forum/-/message_boards/view_message/1601953" rel="nofollow">https://vaadin.com/forum/-/message_boards/view_message/1601953</a></p>