title: Spring Hibernate getCurrentSession() when there's no session?
body: <p>All in the title
  I'm confused with how to use <code>sessionFactory.getCurrentSession()</code>.</p>
  
  <p>In my web-app, multi-threads are created to save messages in the DB, and on creating of each thread, I never used <code>openSession()</code> method, all of the <code>Daos</code> use <code>getCurrentSession()</code>. And till now it's working fine.</p>
  
  <p>And there's no <code>CurrentSessionContext</code> configured. So does hibernate generate a new session for this thread, if not how does this <code>getCurrentSession work</code>?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Yes I'm using Spring 3.1.</p>
  
  <p>Tomcat6 (as plugin in Eclipse and real server on a Linux machine, the app works on both server)</p>