0 Replies Latest reply on Oct 22, 2007 8:34 AM by Tom Baeyens

    refined transaction API

    Tom Baeyens Master

      i'm working on the transaction abstraction API's, making sure they will bind naturally to stanard java and enterprise java and that they defaults contain the good practices.

      the API i'm currently working towards is the following:

      Environment environment = environmentFactory.openEnvironment();
       try {
      
       ...user code goes here...
      
       } catch(Throwable exception) {
       environment.setException(exception);
       } finally {
       environment.close();
       }
      


      i'll add in later post how retries of optimistic locking failures can be handled in this strategy.