3 Replies Latest reply on Oct 5, 2006 1:15 AM by Boobalan Jegathesan

    Transaction setting wrong??

    Stefan Raabe Newbie

      I have a problem if i commit 45000 article data into a entitybean. After for example 15000 dataset the connection will ever break with a transaction error. I hope it exists a setting with which it is possible do correct the problem.
      System which i use: Jboss 4.0.3 and MySQL 5.0.
      Thanks for answer.

        • 1. Re: Transaction setting wrong??
          jaikiran pai Master

          Whats the transaction error? Is it a transaction timeout? The transaction timeout value for EJBs is set in the jboss-service.xml file present in %JBOSS_HOME%/server/default/conf folder:

          <mbean code="org.jboss.tm.TransactionManagerService"
           name="jboss:service=TransactionManager"
           xmbean-dd="resource:xmdesc/TransactionManagerService-xmbean.xml">
           <attribute name="TransactionTimeout">300</attribute>
          
           <depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends>
           </mbean>


          By default the transaction timeout value is 5 minutes(300 seconds). You can increase it if you feel necessary


          • 2. Re: Transaction setting wrong??
            Stefan Raabe Newbie

            Sorry i forgot it. Yes it look like a timeout error. And thanks a lot for the solution it should be the right one. That was not my day.

            • 3. Re: Transaction setting wrong??
              Boobalan Jegathesan Newbie

              Hi,

              I dont find any TransactionManagerService on jboss-service.xml....I am using jboss4.0.3 server but I am finding that in jta-service.xml..

              Now my problem is eventhough timeout is 300sec..my application is running even after 15mins ..Where would be the problem?

              Thanks
              Bala.