title: Manual Transactions with Seam POJO
body: <p>What is best practice for using Database Transactions with Seam when not using EJBs - ie. when deploying Seam as a WAR?</p>
  
  <p>By default Seam JavaBeans support Transactions. I can annotate a method with @Transactional and that will ensure that a transaction is required. Or I can use @Transactional(NEVER) or @Transactional(MANDATORY). What I can't find out how to do is to create my own Transaction, set a timeout, begin and then commit/rollback.</p>
  
  <p>I have tried using: </p>
  
  <pre><code>UserTransaction utx = Transaction.instance();
  utx.setTransactionTimeout(2000);
  utx.begin();
  </code></pre>
  
  <p>But it is either ignored if a Transaction is already in progress or returns a javax.transaction.NotSupportedException if I annotate the method with @Transactional(NEVER)</p>
  
  <p>Any help appreciated. Thanks.</p>