title: org.hibernate.TransactionException: nested transactions not supported
body: <p>I'm attempting to do a little task using Hibernate and JSF . </p>
  
  <p>Here's my snippet of code . managed bean method that supposed to retrieve a list of tags :</p>
  
  <pre><code>Session session = HibernateUtil.getSessionFactory().getCurrentSession();
  public  List&lt;WikiTag&gt; getTags(){
      session.getTransaction().begin();
      Criteria crit = session.createCriteria(WikiTag.class);
      List&lt;WikiTag&gt; result = crit.list();     
      return result;
  }
  </code></pre>
  
  <p>I understand that i can't have more than one session open. However when i call that snippet of code from a facelet i get  </p>
  
  <pre><code>org.hibernate.TransactionException: nested transactions not supported
  </code></pre>
  
  <p>Any light thrown on this is much appreciated . thanks </p>