Re: Selective commit

From: Álvaro Martínez (alvaro_martine..tbsl.com)
Date: Wed Jan 09 2008 - 03:51:45 EST

  • Next message: Andrus Adamchik: "Re: Selective commit"

    Using brand new data contexts solved the problem! I just replaced this
    function:

        public DataContext getNewContext() {
            DataContext newContext = context.createChildDataContext();
            newContext.setTransactionEventsEnabled(true);
            newContext.setValidatingObjectsOnCommit(true);
            return newContext;
        }

    With this one:

        public DataContext getNewContext() {
            return DataContext.createDataContext(true);
        }

    And everything is ok now. I didn't touch any other piece of code.

    Thank you very much!

    Andrus Adamchik escribió:
    > BTW, while I am investigating the bug with nested contexts ... do you
    > have to use them at all? Can you just use multiple peer DataContexts
    > instead?
    >
    > Andrus



    This archive was generated by hypermail 2.0.0 : Wed Jan 09 2008 - 03:52:21 EST