title: Is transaction required to close statement connection?
body: <p>Having a Spring  DAO method </p>
  
  <pre><code>public List&lt;T&gt; findByQuery(String query, Object[] values, int indexStart, int page) throws DefaultException{                    
      try{
          final Query query_ = this.em.createQuery(query).setFirstResult(indexStart);         
          ....
          return query_.getResultList();                                                         
      }catch(Exception e){    
          throw new DefaultException(e.getMessage(), e);
      }                       
  }
  </code></pre>
  
  <p>removing the Transactional annotation, keep the connection Opened after the statement closed</p>
  
  <p>So my question is : is the transaction required for a simple Select Query ?</p>
  
  <p>in this <a href="https://developer.jboss.org/thread/221392?_sscc=t" rel="nofollow">exemple</a> a transaction is created for a simple select query </p>