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?
This sounds like a bug. Gavin needs to verify this, he is AFAIK the only person who knows the entity passivation stuff.