1 Reply Latest reply on Mar 27, 2006 9:05 AM by cbono

    JBoss 3.2.3 to 4.0.3SP1 - transaction timeouts

    cbono

      JBoss4.0.3SP1 / jtds1.2

      I am in the process of porting our app from 3.2.3 to 4.0.3SP1. Everything is working except for our unit tests. Connections are blocking each other and timing out. We invoke out UT classes from a non-transacted ejb. Here is the scenario that is causing it to occur:

      1) UT ejb (non-transacted) invokes UT
      2) UT looks up connection from pool and issues statements
      3) UT invokes a transacted ejb
      4) the invoked transacted ejb looks up connection from pool and issues statements

      Does anyone know what would cause this to "stop working" between 3.2.3 and 4.0.3SP1 ?

      Thanks,
      Chris

        • 1. Re: JBoss 3.2.3 to 4.0.3SP1 - transaction timeouts
          cbono

          Also, the non-transacted unit tests start-up a transaction by calling UserTransaction.begin. So somehow the ejb that is transacted does not have its transaction joined up to the transaction started by the unit test using the UserTransaction.

          Anything changed w/ looking up the client user transaction?

          Here is the code in the setUp() method of the unit test.

          InitialContext ic = new InitialContext();
          UserTransaction tx = (UserTransaction) ic.lookup("UserTransaction");
          tx.begin();


          Thanks