title: javax.jta.Transactional on CDI with hibernate
body: <p>As far as i have read here, this combination should work:</p>
  
  <pre><code>@Transactional(Transactional.TxType.REQUIRED)
  public List&lt;ServerGroupDto&gt; getAll() {
      List&lt;ServerGroup&gt; result = getSession().createCriteria(ServerGroup.class).list();
      return result.stream().map((e) -&gt; {
              ServerGroupDto retval = new ServerGroupDto();
              retval.setGroupName(e.getGroupName());
              retval.setRejectCallOnSessionLimit(Boolean.valueOf(e.getRjtCallForSessLimit()));
              retval.setRouteByWeight(Boolean.valueOf(e.getRouteByWeight()));
              return retval;
      }).collect(Collectors.toList());
  }
  </code></pre>
  
  <p>But Hibernate will complain: <code>org.hibernate.HibernateException: Unable to locate current JTA transaction</code>.</p>
  
  <p>Have I done something not ment to be done? Using Hibernate 4.3.11 &amp; Wildfly 8.2.1. The above code is CDI ApplicationScoped.</p>