1 Reply Latest reply on Sep 29, 2010 10:08 AM by Thomas Gerhards

    Transaction is not active problem

    sadique arslan Newbie
      can any one help me my application is working fine on  my local machine but when i deployed this on server and try to persist my data into table it throws an exception.

      Transaction is not active: tx=TransactionImple < ac

      please suggest me solution

      thanking you
        • 1. Re: Transaction is not active problem
          Thomas Gerhards Newbie
          Have you restarted JBoss on the server? I encountered similar issues some years ago with transactions that ran longer than the default 5 minutes (which happened to many transactions that were started while a big MyISAM table needed to be repaired). After changing TransactionTimeout to 1 hour I did not see the error again.


          --- ejb-deployer.xml : TransactionTimeout increased from 300 to 3600 ---

          <!-- JBoss Transactions JTA -->
          <mbean code="com.arjuna.ats.jbossatx.jta.TransactionManagerService" name="jboss:service=TransactionManager">
                  <attribute name="TransactionTimeout">3600</attribute>
                  <attribute name="ObjectStoreDir">${jboss.server.data.dir}/tx-object-store</attribute>
          </mbean>