title: Method level transaction timeout setting in CDI
body: <p>There is a <strong>org.springframework.transaction.annotation.Transactional</strong> annotation in Spring using which we can give method level timeout for transactions.</p>
  
  <p>I am trying to achieve the same thing using CDI. But the J2EE equivalent annotation <strong>javax.transaction.Transactional</strong> does not have an option to configure timeout.</p>
  
  <p>I have searched for some time but couldn't find much till now. Is it possible to have method level transaction timeout in CDI ? If not then any other way to achieve it ?</p>
  
  <pre><code>//@Transactional(isolation = Isolation.DEFAULT, propagation = Propagation.REQUIRES_NEW, timeout=5_MIN, rollbackFor = {OHException.class })
  @Transactional( value= TxType.REQUIRES_NEW,rollbackOn= {OHException.class})
  public &lt;T&gt; T saveDomainObject(T object) throws OHException{
  .....
  }
  </code></pre>