Version 2

    Transaction is not active message


    Sometimes you may see:


    java.lang.IllegalStateException: Com.arjuna.ats.internal.jta.transaction.arjunacore.inactive Com.arjuna.ats.internal.jta.transaction.arjunacore.inactive The transaction is not active!


    JBossTS is multi-thread aware and allows multiple threads to be active within the scope of the same transaction. Typically only the the transaction creator can terminate the transaction (see Checked Transactions in the JBossTS manuals). But if a timeout is associated with a transaction then the Transaction Reaper may time-out the transaction before the creator has a chance to commit or abort it. Note, if this happens then you should see the Multiple Threads Active In The Same Transaction warning.


    The Reaper uses the Transaction interface to terminate the transaction; this does not change the thread-to-transaction association and hence the creator will remain associated with the (now aborted) transaction. JBossTS will prevent any further work within the scope of that transaction and issue the warning.