title: Hibernate openSession() vs getCurrentSession()
body: <p>I have some questions about using Hibernate in JSP web application.</p>
  
  <ol>
  <li><p>What should be the value for <code>hibernate.current_session_context_class</code>?</p></li>
  <li><p>Then, which of the following statements should be used? And why?</p>
  
  <pre><code> Session s = HibernateUtil.getSessionFactory().openSession();
   Session s = HibernateUtil.getSessionFactory().getCurrentSession()
  </code></pre></li>
  <li><p>Lastly, which one is better "one session per web app" or "one session per request"? </p></li>
  </ol>