0 Replies Latest reply on Aug 8, 2007 8:19 AM by moksha2007

    Problem with transaction demarcation

    moksha2007

      Using jboss 4.0.5; a callback timer method on a stateless bean with transaction attribute REQUIRED_NEW does not seem to 'isolate' the transaction when called concurrently. A org.hibernate.StaleStateException occurs and the whole thing is rolled back.

      @Timeout
      @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
      public void handleTimeout(Timer timer) {
      // pseudo code:
      // find obj (called on a different session bean with default settings)
      // if found delete object
      // The delete causes the stalestate when the entire batch is committed
      }
      


      According to the EJB3.0 specifiation the situation above should work, but it isn't unless I am doing things wrong. Any suggestions? Thanks in advance!