title: Does beginTransaction in Hibernate allocate a new DB connection?
body: <p>Just wondering if beginning a new transaction in Hibernate actually allocates a connection to the DB?  </p>
  
  <p>I'm concerned b/c our server begins a new transaction for each request received, even if that request doesn't interact with the DB.  We're seeing DB connections as a major bottleneck, so I'm wondering if I should take the time narrow the scope of my transactions.</p>
  
  <p>Searched everywhere and haven't been able to find a good answer.  The very simple code is here:</p>
  
  <pre><code>    SessionFactory sessionFactory = (SessionFactory) Context.getContext().getBean("sessionFactory");
      sessionFactory.getCurrentSession().beginTransaction();
      sessionFactory.getCurrentSession().setFlushMode(FlushMode.AUTO);
  </code></pre>
  
  <p>thanks very much!
  a</p>