3 Replies Latest reply on Jul 11, 2008 10:45 PM by admin.admin.email.tld

    Transaction.instance().setTransactionTimeout

    samdoyle

      Hi,


      I'm ssing JBoss 4.2.2.GA and have started to do some work with Hibernate Search and have been using both the Blog and DVD Store examples from the distribution.


      Following your example I'm generating the index on application startup however I was running into this exception after awhile:



      java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.arjuna
      .ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active!
      at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(Trans
      actionImple.java:1379) 



      After some searching around it looks as if this is a result of the transaction timing out in JBossTS. Based off of this I was attempting to set the timeout value using the Transaction.instance().setTransactionTimeout method but it doesn't appear to have any impact.