1 Reply Latest reply on May 2, 2007 4:08 PM by christian.bauer

    PersistenceContext untouch on destory

    youngm

      I have a persistence context that I wish to only be created within a nested conversation and destroyed when that nested conversation ends.

      However, after my nested conversation ends and my PersistenceContext destroyed it is being recreated in my outer conversation when PassivatedEntity.createPassivatedEntity iterates through all of the "touched" PersistenceContexts.

      This could be fixed by "untouching" PersistenceContexts when in the @Destory method of ManagedPersistenceContext.

      Does this seem like a reasonable thought or is there a particular reason why PersistenceContexts aren't untouched on @Destory?

      Mike