0 Replies Latest reply on Dec 15, 2001 12:29 AM by Muhammad Tamton

    Problem with CMT Stateful Session Bean/Entity Bean

    Muhammad Tamton Newbie

      I have a CMT Stateful Session Bean calling an Entity Bean. The Entity calls a EntityContext.setRollbackOnly() if it encounters an SQLException, prior to throwing an application exception, and it closes the connection in the finally clause.

      I have noticed that jboss waits till the transaction times out, and then rolls back the transaction with a NullPointerException. Any calls to the SSB instance are obviously blocked during that time, which is not desireable.

      I need to ensure a rollback, which only occurs through a setRollbackOnly(), but the odd behavior is not desireable.

      I am confused, any help would be gladly appreciated.

      The transaction attribute on SSB = Supports
      The transaction attribute on EB = Required

      <!---- Begin: excerpt from jboss.jcml ---->

      <!-- JDBC -->


      org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,oracle.jdbc.driver.OracleDriver





      OracleDS
      org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
      true
      5
      1
      false
      false
      false
      true
      120000
      1800000
      false
      1.0

      <!---- End: excerpt from jboss.jcml ---->