6 Replies Latest reply on Sep 9, 2003 2:54 PM by juha

    Transaction time pout

    matsu77

      Hi,
      Following message occurs on Jboss console while Stateless Session bean is running.

      Application didn't catch Exception and normal end.
      But Transaction was roll backed.
      This phenomenon occurs when it passes beyond about 5 miniutes from the tranzaction start.

      Why did Transaction roll back?

      Jboss console message :
      [SampleEJB] Transaction XidImpl [FormatId=257, GlobalId=MATSU//2, BranchQual=] timed out. status=STATUS_ACTIVE

      jdk version : jdk1.3.1
      Jboss version : Jboss 2.4.3
      Jdbc version : Oracle 8.1.7(thin)
      jbosscmp-jdbc.xml:

      OracleDB
      org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
      jdbc:oracle:thin:@localhost:1521:test
      test
      test
      0
      0


      jboss.xml:

      <enterprise-beans>

      <ejb-name>SampleEJB</ejb-name>
      <jndi-name>MasterHaisin</jndi-name>
      <resource-ref>
      <res-ref-name>OracleDB</res-ref-name>
      <jndi-name>java:OracleDB</jndi-name>
      </resource-ref>

      </enterprise-beans>


      ejb-jar.xml:
      <ejb-jar>
      Deployment descriptor for the sb JOnAS example
      <enterprise-beans>

      <ejb-name>SampleEJB</ejb-name>
      com.dgretail.rmicenter.batch.business.sample.SampleHome
      com.dgretail.rmicenter.batch.business.sample.Sample
      <ejb-class>com.dgretail.rmicenter.batch.business.sample.SampleEJB</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <resource-ref>
      <res-ref-name>OracleDB</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>

      </enterprise-beans>
      <assembly-descriptor>
      <container-transaction>

      <ejb-name>SampleEJB</ejb-name>
      <method-name>*</method-name>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      </assembly-descriptor>
      </ejb-jar>