title: JBoss EAP: @TransactionTimeout not affecting @Timeout Method?
body: <p>Here I have a piece of code which is triggered by an EJB Timer, running inside an EAR deployed on a JBoss EAP 6.2.</p>
  
  <p>Since processing within the <code>onTimeout(Timer timer)</code> method can take much longer than the default transaction timeout specified in standalone.xml I came up with this solution:</p>
  
  <pre><code>//[...]
  import javax.ejb.Singleton;
  import javax.ejb.Startup;
  import javax.ejb.Timeout;
  import javax.ejb.Timer;
  import javax.ejb.TimerService;
  import javax.ejb.TransactionAttribute;
  import javax.ejb.TransactionAttributeType;
  import org.jboss.ejb3.annotation.TransactionTimeout;
  //[...]
  
  @Startup
  @Singleton
  public class DataqReaderServiceImpl extends AbstractDataqReaderService {
  
      @Resource
      private TimerService timerService;
  
      @Override
      @Timeout
      @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
      @TransactionTimeout(unit = TimeUnit.MINUTES, value = 60)
      protected void onTimeout(Timer timer) {
      try {
              super.readDataq(timer);
          } catch (Exception e) {
              timer.cancel();
          }
      }
  }
  //[...]
  </code></pre>
  
  <p>But appearantly the <code>@TransactionTimeout</code> annotation is ignored. After the code has been running for 5 Minutes, the Transaction Reaper comes to live:</p>
  
  <pre><code>2016-12-19 15:12:21,878 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper) ARJUNA012117: TransactionReaper::check timeout for TX 0:ffff0a07065b:296fc7c:5857e084:67ef in state  RUN
  2016-12-19 15:12:21,881 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012095: Abort of action id 0:ffff0a07065b:296fc7c:5857e084:67ef invoked while multiple threads active within it.
  2016-12-19 15:12:21,881 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012108: CheckedAction::check - atomic action     0:ffff0a07065b:296fc7c:5857e084:67ef aborting with 1 threads active!
  2016-12-19 15:12:21,882 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012121: TransactionReaper::doCancellations worker Thread[Transaction Reaper Worker 0,5,main] successfully canceled TX 0:ffff0a07065b:296fc7c:5857e084:67ef
  </code></pre>
  
  <p>Where's my mistake?</p>