title: Set Timeout in JTA configuration
body: <p>JTA transaction unexpectedly rolled back (maybe due to a timeout); the nested exception is</p>
  
  <pre><code>javax.transaction.RollbackException: The transaction was set to rollback only
  </code></pre>
  
  <p>I get an timeout exception due to JPA: how can I increase the time needed for the transaction?</p>
  
  <p>Where should I include the parameter to resolve this?</p>
  
  <p>I am using tomcat 7. </p>