title: When to open/close a hibernate session in a Java EE enviroment
body: <p>Open at the begin of the http request and close at the end and each http request is treated in a separated thread? </p>
  
  <p>Maybe saving all session in a HashMap and access it statically?</p>
  
  <p>Any information which explains how hibernate sessions work (or what they really are) are helpful.</p>